Merge pull request #7089 from sergio-nsk/patch-2

Backport 2.28: Fix unreachable code compiler warning in psa_crypto_driver_wrappers.c
This commit is contained in:
Gilles Peskine 2023-02-12 23:56:30 +01:00 committed by GitHub
commit 430c6338de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1060,8 +1060,9 @@ psa_status_t psa_driver_wrapper_cipher_decrypt_setup(
}
return status;
#endif /* MBEDTLS_PSA_BUILTIN_CIPHER */
#else /* MBEDTLS_PSA_BUILTIN_CIPHER */
return PSA_ERROR_NOT_SUPPORTED;
#endif /* MBEDTLS_PSA_BUILTIN_CIPHER */
/* Add cases for opaque driver here */
#if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT)