> [[email protected] - Thu Dec 16 14:28:31 2010]: > > > int mk_test_cert(int buflen, char* buf) > { > char* p; > char* q; > X509* sign_cert; > > q = unbase64_raw(cert_b64, cert_b64+sizeof(cert_b64)-1, p=buf, > std_index_64); > if (!d2i_X509(&sign_cert, &p, q-p) || !sign_cert) { > report_openssl_error("DER decoding of X509 certificate"); > return 0; > } > return 1;
You need to initialise sign_cert to NULL for reasons mentioned in the manual page. Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
