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);
! 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);
! 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.
Thanks in
advance,
Vinod
C
**************************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. *************************************************************************** |