On Tue, Mar 22, 2011, Victor Duchovni wrote:

> > client() has some code like this:
> >   SSL_CTX_set_ex_data(a_ctx->a_ssl_ctx, myidx, a_ctx->cb_arg);
> 
> No, don't do that, the SSL_CTX application context object is global.

I was demonstrating that the callback API has some problems.
If the common(?) way of taking a user supplied argument would be
used then things would be simpler for application programmers, as
can be seen by SSL_CTX_set_cert_verify_callback(3).

Anyway, thanks for pointing out that these things can be done
differently; now I'll have to figure out whether my current TLS
client session caching prototype that I just wrote to work without
callbacks is incorrect.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to