Fix PKCS#12 use with OpenSSL 1.0.0
authorJouni Malinen <j@w1.fi>
Fri, 8 Jan 2010 22:38:09 +0000 (00:38 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 8 Jan 2010 22:38:09 +0000 (00:38 +0200)
commit1056dad796e78509604c0aa836803c8425b4ba37
tree90452b5dd3aa9421d8dc8538fc4355db0e3e6682
parentd97572a40fd7ec77094e2e4ef83424a4c0f7e24d
Fix PKCS#12 use with OpenSSL 1.0.0

Add 40-bit RC2 CBC explicitly since OpenSSL 1.0.0 does not seem to that
anymore with PKCS12_PBE_add(). Furthermore, at least 1.0.0-beta4 crashes
if the needed cipher is not registered when parsing the PKCS#12 data
(this crashing part should be fixed in newer 1.0.0 versions)

Following bug reports are related to the issue:
https://bugzilla.redhat.com/show_bug.cgi?id=541924
https://bugzilla.redhat.com/show_bug.cgi?id=538851
http://rt.openssl.org/Ticket/Display.html?id=2127
http://rt.openssl.org/Ticket/Display.html?id=2128
src/crypto/tls_openssl.c