On 13 Dec, Filipe Contente wrote:

> i'm using this function to get the client certificate:
> And it returns NULL!!
You must:
        /* This is needed for verifying any client */
        if ( ! SSL_CTX_load_verify_locations( sslctx, ca_file, ca_dir)) {
                ERR_print_errors_fp( stderr);
                WO exit( 1);
        }
and:
        /* We wane have a cert, so turn verification on. */
        SSL_set_verify( ssl_con, SSL_VERIFY_PEER, ssl_callback_SSL_verify);

Get: ftp://forelle32.wohnheim.uni-kl.de/pub/apps/echohttpd-1.0.tar.gz
for a more complete example. 
-- 



tschüß,
         Jochen

Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/

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

Reply via email to