[openssl-commits] [openssl] OpenSSL_1_0_2-stable update
Richard Levitte
levitte at openssl.org
Thu Oct 20 06:39:17 UTC 2016
The branch OpenSSL_1_0_2-stable has been updated
via 10e60f26cef02a6310d20cc2c918184fc9100d14 (commit)
from 1c6aab6a527b057133b470fa8c778e3d45f1605a (commit)
- Log -----------------------------------------------------------------
commit 10e60f26cef02a6310d20cc2c918184fc9100d14
Author: Richard Levitte <levitte at openssl.org>
Date: Wed Oct 19 22:54:06 2016 +0200
Fix no-des
Reviewed-by: Rich Salz <rsalz at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1748)
-----------------------------------------------------------------------
Summary of changes:
apps/pkcs12.c | 2 ++
crypto/cms/cms_kari.c | 5 ++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/apps/pkcs12.c b/apps/pkcs12.c
index 82182c2..4e7de43 100644
--- a/apps/pkcs12.c
+++ b/apps/pkcs12.c
@@ -1110,4 +1110,6 @@ static int set_pbe(BIO *err, int *ppbe, const char *str)
return 1;
}
+#else
+static void *dummy = &dummy;
#endif
diff --git a/crypto/cms/cms_kari.c b/crypto/cms/cms_kari.c
index 2cfcdb2..ee28317 100644
--- a/crypto/cms/cms_kari.c
+++ b/crypto/cms/cms_kari.c
@@ -401,9 +401,12 @@ static int cms_wrap_init(CMS_KeyAgreeRecipientInfo *kari,
* Pick a cipher based on content encryption cipher. If it is DES3 use
* DES3 wrap otherwise use AES wrap similar to key size.
*/
+#ifndef OPENSSL_NO_DES
if (EVP_CIPHER_type(cipher) == NID_des_ede3_cbc)
kekcipher = EVP_des_ede3_wrap();
- else if (keylen <= 16)
+ else
+#endif
+ if (keylen <= 16)
kekcipher = EVP_aes_128_wrap();
else if (keylen <= 24)
kekcipher = EVP_aes_192_wrap();
More information about the openssl-commits
mailing list