Hi Team, I am seeing the segmentation fault while executing the DELTA CDP retrieval code for second time. Should I need to clean the strings after created by the OBJ_create() function?
Please have a look at the piece of code. First time it is running fine. Second time it is giving segmatation fault at OBJ_create(). How to avoid this? Any thoughts on the same are appreciated. ==================================================== Int i, ii, nid var; X509_CRL crl; DIST_POINT *pnt, *pnt1; nid = OBJ_create("2.5.29.46", "DCRLDP", "Dela CRL Distribution Point"); X509V3_EXT_add_alias(nid, NID_crl_distribution_points); pnt = X509_CRL_get_ext_d2i(crl, nid, &var, NULL); ii = sk_DIST_POINT_num(pnt); for (i = 0; i < sk_DIST_POINT_num(pnt); i++) { pnt1 = sk_DIST_POINT_value(pnt, i); if(pnt1->distpoint) { if(pnt1->distpoint->type == 0) { int j=0; GENERAL_NAMES *gen; GENERAL_NAME *gen1; gen = pnt1->distpoint->name.fullname; for(j = 0; j<sk_GENERAL_NAME_num(gen);j++) { gen1 = sk_GENERAL_NAME_value(gen, j); printf("type is %d\n",gen1->type); switch (gen1->type) { case GEN_URI: printf("Here is the DELTA CDP. GOT IT\n"); printf("%s\n",gen1->d.ia5->data); strcpy(delta_cdp, (char*)gen1->d.ia5->data); break; } } } } } ================================================================== -----Original Message----- From: Surendra Babu Ande (WT01 - SOFTWARE PRODUCTS GROUP) Sent: Monday, September 04, 2006 6:13 PM To: 'openssl-users@openssl.org' Subject: RE: How to retrive the delta CRL location and revocation reason? Hi, Thank you for the information. I enabled the Freshest CRL extension in base CRL thru our LONGHORN server settings. Now I could get the Delta CRL's CDP succcessfully. Thanks a lot. Millions of Thanks for your help, -Surendra -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dr. Stephen Henson Sent: Saturday, September 02, 2006 10:35 PM To: openssl-users@openssl.org Subject: Re: How to retrive the delta CRL location and revocation reason? On Sat, Sep 02, 2006, [EMAIL PROTECTED] wrote: > > Hi, > > Please have a look at the attached delta crl, base crl and certificate. > I could retrieve the CDP for base crl using traditional way. But I am > seeing problem in retrieving the CDP of delta crl. > Well among other things that certificate doesn't include a delta CRLDP in its extension which explains why you can't find it... Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED] The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]