Hello,

since the upgrade from 0.9.8g to 0.9.8h the code below to generate a PKCS12 object failed! I have observed this on linux64 (debian 3.1) and WinXP. The parameter have not been changed and 'key' is an RSA key.

The code:

ERR_clear_error();
PKCS12 *pkcs12cont = PKCS12_create ((char*) pwd.c_str(), "id", key, cert, NULL, 0,0,0,0,0);
printf (ERR_error_string (ERR_peek_error(), NULL));
printf ("\n%s\n", ERR_error_string (ERR_peek_last_error(), NULL));

gives the output:

pkcs12cont is NULL
error:0D0BA041:asn1 encoding routines:ASN1_STRING_set:malloc failure
error:0B08A041:x509 certificate routines:X509_ATTRIBUTE_set1_data:malloc failure


Any ideas, what has been changed and how I can work around it?

Thanks
Jan
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to