> -----Original Message-----
> From: Brian Wotring [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 27, 2000 2:03 PM
> To: [EMAIL PROTECTED]
> Subject: X509 kept in memory
> 
> 
> 
> I have a client app that I wish to load a cert from disk on 
> startup, then
> keep it in memory and use that same cert every time I make a 
> connection.
> Currently, I am using SSL_CTX_get_cert_store() and
> SSL_CTX_set_cert_storeI() but when I'm done with my connection,
> SSL_CTX_free() frees the cert store.
> 
> How can I hold onto ( or copy ) this store object?  Better 
> yet, how could I
> do the same thing with an X509 structure rather than the whole store ?
> 

Wrong approach.

SSL_CTX_use_certificate_file(). See, for example, apps/s_cb.c,
set_cert_stuff().


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

Reply via email to