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