Query related to SSL_CTX_set_msg_callback_arg

Viktor Dukhovni openssl-users at dukhovni.org
Mon Jun 10 17:18:07 UTC 2019

> On Jun 10, 2019, at 10:54 AM, Jeremy Harris <jgh at wizmail.org> wrote:
>> |void SSL_CTX_sess_set_new_cb(SSL_CTX *ctx, int (*new_session_cb)(SSL *,
>> SSL_SESSION *));|
>> How do we specify a user-defined callback data pointer in that call?
> You don't; you additionally use
>  SSL_CTX_set_msg_callback_arg()
> which the OP said he was already using.

That was a different callback (upthread), the OP is now asking about
the new session callback, which has no explicit application argument.
Perhaps there should be a new "_ex" version that supports an argument,
but in the meantime applications that want an application context with
the new session callback have been using ex_data for the last decade
or two.


More information about the openssl-users mailing list