On Thu, Dec 13, 2001 at 11:10:09AM +0530, ratan.sarkar wrote:
>  
>      pCert=PEM_read_X509(fp,NULL,0,NULL);

Here bytes are read from fp and the file pointer is not reset.
>  
>      if(pCert==NULL)
>                d2i_X509_fp(fp,&pCert);  

Here the first bytes are missing, as they have already been read
by PEM_read_X509().

Best regards,
        Lutz
-- 
Lutz Jaenicke                             [EMAIL PROTECTED]
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to