How to access different fields of structure SSL in OpenSSL 3.0

Tomas Mraz tomas at openssl.org
Tue May 11 12:48:06 UTC 2021


On Tue, 2021-05-11 at 05:22 +0000, Kumar Mishra, Sanjeev wrote:
> Hi,
> How to access different fields of structure SSL in OpenSSL 3.0 ? For
> example the code is like this -
> 
> SSL *ssl;
> ......
> .......
> SSL_CTX_set_tlsext_status_cb(ssl->ctx, NULL);
> MRM_LOG_INFO("SSL_free ref %d ", ssl->references);

For the SSL_CTX_set_tlsext_status_cb() you can use 
SSL_get_SSL_CTX() to obtain the ctx.

There is no way to get the ssl->references value as that is an internal
value. As you apparently need it just for debug logging you should be
able to avoid that.

Tomas Mraz




More information about the openssl-users mailing list