Hi Christian

Thankyou for your reply. I already did that but no use

-----------------------------

X509_CRL *pCRL=0, *pTempCRL = 0;

pCRL = d2i_X509_CRL_fp( m_pfCRLFile, &pTempCRL );

if( !pCRL )
{
    printf("Unable to read using d2i_X509_CRL_fp\n");
    rewind(m_pfCRLFile);
    pCRL = PEM_read_X509_CRL(m_pfCRLFile, &pTempCRL, NULL, 0);
}

rewind(m_pfCRLFile);

--------------------------------

Thanks
Radhakrishna. 

-----Original Message-----
From: owner-openssl-us...@openssl.org
[mailto:owner-openssl-us...@openssl.org] On Behalf Of Christian
Hohnstaedt
Sent: Friday, January 08, 2010 12:15 PM
To: openssl-users@openssl.org
Subject: Re: Unable to load CRL

Hi,

On Fri, Jan 08, 2010 at 11:42:39AM +0530, Radha krishna Meduri -X
(radmedur - HCL at Cisco) wrote:
> 
> 
> X509_CRL *pCRL=0, *pTempCRL = 0;
> 
> pCRL = d2i_X509_CRL_fp( m_pfCRLFile, &pTempCRL );
> 
> if( !pCRL )
> {
>     printf("Unable to read using d2i_X509_CRL_fp\n");
      
/* Filepointer is somewhere in the file. Reset it */
rewind(m_pfCRLFile);


>     pCRL = PEM_read_X509_CRL(m_pfCRLFile, &pTempCRL, NULL, 0); }

fclose(m_pfCRLFile);


> 
> if( !pCRL )
> {
>     printf("Unable to read CRL file\n" );
>     exit(0);
> }

best regards

        Christian

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to