Preferred way of passing user context void* inside SSL*

Johannes Bauer dfnsonfsduifb at gmx.de
Wed Oct 23 13:40:09 UTC 2019


On 23.10.19 15:21, Salz, Rich wrote:
>>    Is there a way for me to piggyback a void* inside the SSL structure so
>     that I can access it from within the callback?
>
> Yes, you can use SSL_set_app_data and SSL_get_app_data which are documented in https://github.com/openssl/openssl/pull/10216 (and due to be merged to master soon)

Ah, completely overlooked that!

Thanks, Rich, this scratches *exactly* my itch.

All the best,
Joe


More information about the openssl-users mailing list