Yeah I am refering to loadkeys.c.Is there any specific reason why the usage of this function has been discouraged.
Thanks, Vinod C -----Original Message----- From: Dr. Stephen Henson [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 5:39 PM To: [EMAIL PROTECTED] Subject: Re: Problems with PEM_ASN1_read On Thu, Sep 04, 2003, Chandran,Vinod wrote: > > Hi, > > > Has the error involve while compiling example1.c been rectified. > I am referring to PEM_ASN1_read function. I am using openssl-0.9.7b . > When I compile the file using the above function, its failing. > > However instead of PEM_ASN1_READ, when I use PEM_read_X509, it passes. > > x509 = (X509 *)PEM_ASN1_read ((char *(*)())d2i_X509, > ! PEM_STRING_X509, > ! fp, NULL, NULL, NULL); > > giving errors: > > When changed to > > x509 = PEM_read_X509(fp, NULL, 0, NULL); > > its passing. > > Similarly instead of > pkey = (EVP_PKEY*)PEM_ASN1_read ((char *(*)())d2i_PrivateKey, > ! PEM_STRING_EVP_PKEY, > ! fp, > ! NULL, NULL, NULL); > > pkey = PEM_read_PrivateKey(fp, NULL, 0, NULL); > > the error was rectified. I am unaware why is the function PEM_ASN1_read is > failing. > Do you mean demos/maurice/example1.c and the functions in loadkeys.c? It shouldn't be calling PEM_ASN1_read() at all: the use of that function in applications is strongly discouraged. Steve. -- Dr Stephen N. Henson. Core developer of the OpenSSL project: http://www.openssl.org/ Freelance consultant see: http://www.drh-consultancy.demon.co.uk/ Email: [EMAIL PROTECTED], PGP key: via homepage. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. *************************************************************************** ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]