Hi All, 
I want to read CA certificate from certificate bundle to verify the peer. So
I dumped  the CA certificate  bundle in memory  instead of reading from
file. 
   
BIO *in;
STACK_OF(X509_INFO) *inf;
in = BIO_new_mem_buf(file, -1);

if(!in) {
                X509err(X509_F_X509_LOAD_CERT_CRL_FILE,ERR_R_SYS_LIB);
                return 0;
        }
        inf = PEM_X509_INFO_read_bio(in, NULL, NULL, NULL);
        BIO_free(in);

Please guide me how to use memory pointer for ca certificate bundle to check
the peer verification instead of using file operation.

 
Thank you.
Regards,
--Ajeet  Kumar  Singh
 
 



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

Reply via email to