The use of NIDs in the password based encryption table can result in
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().
This commit is contained in:
parent
2e155fde39
commit
2a4d0dcb89
@ -76,6 +76,10 @@ int SSL_library_init(void)
|
|||||||
#endif
|
#endif
|
||||||
#ifndef OPENSSL_NO_RC2
|
#ifndef OPENSSL_NO_RC2
|
||||||
EVP_add_cipher(EVP_rc2_cbc());
|
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
|
#endif
|
||||||
#ifndef OPENSSL_NO_AES
|
#ifndef OPENSSL_NO_AES
|
||||||
EVP_add_cipher(EVP_aes_128_cbc());
|
EVP_add_cipher(EVP_aes_128_cbc());
|
||||||
|
Loading…
Reference in New Issue
Block a user