On Fri, Jan 21, 2011, Graham Leggett wrote: > Hi all, > > I am trying to load a CRL, and currently my options seem to be choosing one > of the following: > > X509_STORE_add_lookup(certstore, X509_LOOKUP_hash_dir()) > X509_STORE_add_lookup(certstore, X509_LOOKUP_file()) > > The dilemma I face is that I need to do this in a non blocking fashion in > an event loop, so the functions above won't help me. > > What I am looking for is a function that will add a certificate to the > store from an area in memory, loaded earlier. >
You can read the CRL into an X509_CRL stucture using d2i_X509_CRL() or the PEM functions using a memory BIO. Once you have the X509_CRL structure you can add the CRL with X509_STORE_add_crl(). Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org