GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
X509_INFO_NEW(3) FreeBSD Library Functions Manual X509_INFO_NEW(3)

X509_INFO_new, X509_INFO_free
X.509 certificate wrapper object

#include <openssl/x509.h>

X509_INFO *
X509_INFO_new(void);

void
X509_INFO_free(X509_INFO *info);

X509_INFO is a reference-counted wrapper object storing a pointer to an X.509 certificate together with pointers to the associated private key and to an associated certificate revocation list. It is for example used internally by X509_load_cert_crl_file(3).

X509_INFO_new() allocates and initializes an empty X509_INFO object and sets its reference count to 1.

X509_INFO_free() decrements the reference count of info by 1. If the reference count reaches 0, it frees all referenced objects as well as the storage needed for info itself. If info is a NULL pointer, no action occurs.

X509_INFO_new() returns the newly allocated X509_INFO object or NULL if an error occurs.

PEM_X509_INFO_read(3), X509_CRL_new(3), X509_new(3), X509_PKEY_new(3)

X509_INFO_new() and X509_INFO_free() first appeared in SSLeay 0.5.1 and have been available since OpenBSD 2.4.
October 19, 2021 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.