How to access different fields of structure SSL in OpenSSL 3.0
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:
> 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.
More information about the openssl-users