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]