diff options
Diffstat (limited to 'recipes-connectivity/openssl/openssl-qoriq/qoriq/0048-fix-maclen-is-used-uninitialized-warning-on-some-com.patch')
-rw-r--r-- | recipes-connectivity/openssl/openssl-qoriq/qoriq/0048-fix-maclen-is-used-uninitialized-warning-on-some-com.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-connectivity/openssl/openssl-qoriq/qoriq/0048-fix-maclen-is-used-uninitialized-warning-on-some-com.patch b/recipes-connectivity/openssl/openssl-qoriq/qoriq/0048-fix-maclen-is-used-uninitialized-warning-on-some-com.patch new file mode 100644 index 0000000..d7b84e6 --- /dev/null +++ b/recipes-connectivity/openssl/openssl-qoriq/qoriq/0048-fix-maclen-is-used-uninitialized-warning-on-some-com.patch @@ -0,0 +1,29 @@ +From 116bd4f6f1ee5acdb997d414902d9646b24df1be Mon Sep 17 00:00:00 2001 +From: Cristian Stoica <cristian.stoica@nxp.com> +Date: Wed, 6 Apr 2016 15:22:58 +0300 +Subject: [PATCH 48/48] fix 'maclen is used uninitialized' warning on some + compilers + +Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com> +--- + crypto/engine/eng_cryptodev.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c +index 539be62..35b71b0 100644 +--- a/crypto/engine/eng_cryptodev.c ++++ b/crypto/engine/eng_cryptodev.c +@@ -905,6 +905,10 @@ static int cryptodev_cbc_hmac_sha1_ctrl(EVP_CIPHER_CTX *ctx, int type, + maclen = SHA256_DIGEST_LENGTH; + aad_needs_fix = true; + break; ++ default: ++ fprintf(stderr, "%s: unsupported NID: %d\n", ++ __func__, ctx->cipher->nid); ++ return -1; + } + + /* Correct length for AAD Length field */ +-- +2.7.0 + |