]> granicus.if.org Git - openssl/commitdiff
The use of NIDs in the password based encryption table can result in
authorDr. Stephen Henson <steve@openssl.org>
Tue, 19 Jan 2010 19:56:06 +0000 (19:56 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 19 Jan 2010 19:56:06 +0000 (19:56 +0000)
algorithms not found when an application uses PKCS#12 and only calls
SSL_library_init() instead of OpenSSL_add_all_algorithms(). Simple
work around is to add the missing algorithm (40 bit RC2) in
SSL_library_init().

ssl/ssl_algs.c

index 640f6cff5c9ce4d692a32e5edd1dc28637d0f96c..a26ae439573cb27eace4b2d329df48f30b14c21c 100644 (file)
@@ -76,6 +76,10 @@ int SSL_library_init(void)
 #endif  
 #ifndef OPENSSL_NO_RC2
        EVP_add_cipher(EVP_rc2_cbc());
+       /* Not actually used for SSL/TLS but this makes PKCS#12 work
+        * if an application only calls SSL_library_init().
+        */
+       EVP_add_cipher(EVP_rc2_40_cbc());
 #endif
 #ifndef OPENSSL_NO_AES
        EVP_add_cipher(EVP_aes_128_cbc());