libressl-X509_CRL_new3
X.509 certificate revocation lists
Usage
Crypto Library (libcrypto, -lcrypto)
#include <openssl/x509.h>
X509_CRL *
X509_CRL_new(void);
X509_CRL *
X509_CRL_dup(X509_CRL *crl);
int
X509_CRL_up_ref(X509_CRL *crl);
void
X509_CRL_free(X509_CRL *crl);
X509_CRL_INFO *
X509_CRL_INFO_new(void);
void
X509_CRL_INFO_free(X509_CRL_INFO *crl_info);
Overview
X509_CRL_new() allocates and initializes an empty X509_CRL object, representing an ASN.1 CertificateList structure defined in RFC 5280 section 5.1. It can hold a pointer to an X509_CRL_INFO object discussed below together with a cryptographic signature and information about the signature algorithm used. The reference count is set to 1.
X509_CRL_dup() creates a deep copy of crl.
X509_CRL_up_ref() increments the reference count of crl by 1.
X509_CRL_free() decrements the reference count of crl by 1. If the reference count reaches 0, it frees crl.
X509_CRL_INFO_new() allocates and initializes an empty X509_CRL_INFO object, representing an ASN.1 TBSCertList structure defined in RFC 5280 section 5.1. It is used inside the X509_CRL object and can hold a list of revoked certificates, an issuer name, the time the list was issued, the time when the next update of the list is due, and optional extensions. X509_CRL_INFO_free() frees crl_info.
Return values
X509_CRL_new(), X509_CRL_dup(), and X509_CRL_INFO_new() return the new X509_CRL or X509_CRL_INFO object, respectively, or NULL if an error occurs.
X509_CRL_up_ref() returns 1 on success or 0 on error.