Re: How to access different fields of structure SSL in OpenSSL 3.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux