d2i_X509 can read certificate from a X509 structure(PEM)
to a char * buffer (DER)
and i need read certificate from a char  * buffer (PEM)
to a X509 structure (PEM)

[EMAIL PROTECTED] wrote:

> gang cao wrote:
> >
> > hi all,
> > in x509.c , load_cert(char * file , int format)
> > read certificate from a file .
> > i need read a certificate from a buf ( unsigned char * ),
> > a function  like
> > static X509 *load_cert(unsigned char *data , int len , int format )
> > len is the length of  data.
>
> d2i_X509() should do this work provided that you have der-encoded (not pem)
> certificate in your buffer
>
> regards,
> Vadim
>
> > so i change the following :
> >
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> Development Mailing List                       [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to