geragray wrote:
> I need to create X509 structure from a pointer to the memory area where it is
> stored
> I have found 
> X509 *d2i_X509(X509 **px, const unsigned char **in, int len);
> but certificate there should be in DER format.
> Does anybody know a way to create if from PEM certificate? All i found is 
> PEM_read_X509 and PEM_read_bio_X509 function that takes file poiner and bio
> as an input parameter. Which makes them unusable for me. 


One option is to use PEM_read_bio_X509 with a BIO_mem().

Have fun.

Patrick.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to