> 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) {
You're passing uninitialized X509* pointer sign_cert to the d2i_X509().
The function then tries to reuse the structure that the pointer is
supposed to be pointing to.
--
Tomas Mraz
No matter how far down the wrong road you've gone, turn back.
Turkish proverb
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [email protected]