On Wed, Jun 25, 2014 at 03:23:27PM +0200, Jens Maus wrote:

> Ok, but then please allow the question how I should deal with 
> 
> SSL_CTX_set_cert_verify_callback(sslCtx, func, conn);

Set this callback once, with a "conn" value of 0.  Use

    ssl_idx = SSL_get_ex_data_X509_STORE_CTX_idx();
    conn = X509_STORE_CTX_get_ex_data(store_ctx, ssl_idx);

to retrieve the connection handle.

> So how can I specify an own app_data for every connection? IMHO
> there should be something like SSL_set_cert_app_data() so that I
> can specify different app_data for different SSL connections.

Rarely needed, could be added in the future, but that won't help
you now.

-- 
        Viktor.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to