structure reference counter read-only access

Matt Caswell matt at openssl.org
Mon Aug 12 10:09:44 UTC 2019



On 12/08/2019 10:01, Astib wrote:
> Hello list,
> how one can access OpenSSL structure reference counter
> using new API, please?
> 
> My intention is not to change it, I am interested
> in reading that value only, for debugging purposes.
> 
> For example,|I am looking for something like this:||||
> 
> const||int X509_get_ref(X509 *a);
> 
> ... which returns current reference counter of 'a'.
> 
> Maybe I am missing something.

This counter is considered internal data and is therefore not accessible via the
API.

Matt



More information about the openssl-users mailing list