|X509_PKEY_NEW(3)||Library Functions Manual||X509_PKEY_NEW(3)|
X509_PKEY_free — X.509
private key wrapper object
X509_PKEY is a reference-counted wrapper object that can store
The object may contain only the encrypted key or only the decrypted key or both.
X509_PKEY is used as a sub-object of the X509_INFO object created by PEM_X509_INFO_read_bio(3) if the PEM file contains any RSA, DSA, or EC PRIVATE KEY object.
allocates and initializes an empty X509_PKEY object
and sets its reference count to 1.
decrements the reference count of the wrapper object
by 1. If the reference count reaches 0, it frees all internal objects
allocated by the wrapper as well as the storage needed
for the wrapper object itself. If
wrapper is a
NULL pointer, no
X509_PKEY_new() returns a pointer to the
new X509_PKEY object or
if memory allocation fails.
X509_PKEY_free() first appeared in SSLeay 0.6.0 and
have been available since OpenBSD 2.4.
|October 19, 2021||OpenBSD-current|