Stig Venaas wrote:
> 
> Hi
> 
> I've figured how to read certificates from a file using
> PEM_read_X509() but how can I access certificates already
> in memory? I guess I could borrow code from the internals
> of PEM_ASN1_read_bio(), but I'm hoping for a better way,
> not depending on too many low level internals.
> 

Depends on what you mean by "in memory" if its PEM format in memory you
can use a memory BIO (see BIO_s_mem() manual page) if its in DER form
then you can use the d2i_X509() function directly (see FAQ for info).

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to