On Wed, Jun 25, 2014, Viktor Dukhovni wrote:

> 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.
> 

Though SSL structures support ex_data and that could be used. See:

https://www.openssl.org/docs/ssl/SSL_get_ex_new_index.html`

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

Reply via email to