I want to have OCSP_CERTID field from the OCSP_REQUEST in binary format. I tried to get it using i2d_OCSP_CERTID(bp,certID). When i call this function my program segfaults. I also tried ASN1_i2d_bio(i2d_OCSP_CERTID,bp,unsigned char *) and got same segmentation fault.
I am using openssl-0.9.7c on Windows 2000.
My code is something like this.
OCSP_REQUEST *req; OCSP_CERTID *id = NULL; BIO *bp = NULL,*bio = NULL;
req = OCSP_REQUEST_new();
why are
ok = OCSP_create_request_new(ctx,&req,&id);
you don't
i2d_OCSP_REQUEST_bio(bio,req); --------This function works fine.
//ANS1_i2d_bio(i2d_OCSP_CERTID,bp,(unsigned char *)id);
check the
i2d_OCSP_CERTID(bp,id);
return values?
Can someone tell me what am i doing wrong?
please type `gdb progname progname.core`, then type `bt` inside the debugger end send the output back.
-- Lev Walkin [EMAIL PROTECTED]
______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
