X509_CRL_NEW(3)
π NAME π
okay so this is the X509_CRL_NEW(3) page from the Library Functions Manual, and it's literally the group chat for X.509 certificate revocation lists. The whole crew is:
X509_CRL_newX509_CRL_dupX509_CRL_up_refX509_CRL_freeX509_CRL_INFO_newX509_CRL_INFO_free
and together they're all about X.509 certificate revocation lists. periodt. π
β¨ SYNOPSIS β¨
#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);
π¦ DESCRIPTION π¦
okay bestie, here's the tea. Each function has main character energy of its own, and honestly they ate:
X509_CRL_new()β allocates and initializes an emptyX509_CRLobject. That object represents an ASN.1CertificateListstructure defined in RFC 5280 section 5.1. It can hold a pointer to anX509_CRL_INFOobject (more on that below) together with a cryptographic signature and information about the signature algorithm used. The reference count is set to1. πX509_CRL_dup()β creates a deep copy ofcrl. No cap, a whole duplicate. πͺX509_CRL_up_ref()β increments the reference count ofcrlby1. Slay, the refcount goes up. β¨X509_CRL_free()β decrements the reference count ofcrlby1. If the reference count reaches0, it freescrl. So it's giving cleanup era. π§ΉX509_CRL_INFO_new()β allocates and initializes an emptyX509_CRL_INFOobject. This one represents an ASN.1TBSCertListstructure defined in RFC 5280 section 5.1. It is used inside theX509_CRLobject 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
- optional extensions
iconic container behavior, honestly. π«Ά
X509_CRL_INFO_free()β freescrl_info. Bye bestie. π
π RETURN VALUES π
vibe check on what comes back:
X509_CRL_new(),X509_CRL_dup(), andX509_CRL_INFO_new()return the newX509_CRLorX509_CRL_INFOobject, respectively, orNULLif an error occurs. π«X509_CRL_up_ref()returns1on success or0on error. highkey simple as that. π―
π SEE ALSO π
lowkey required reading, fr fr. not me having a whole reading list for CRLs π:
ACCESS_DESCRIPTION_new(3)AUTHORITY_KEYID_new(3)d2i_X509_CRL(3)DIST_POINT_new(3)PEM_read_X509_CRL(3)X509_CRL_digest(3)X509_CRL_get0_by_serial(3)X509_CRL_get0_lastUpdate(3)X509_CRL_get0_signature(3)X509_CRL_get_ext(3)X509_CRL_get_ext_d2i(3)X509_CRL_get_issuer(3)X509_CRL_get_version(3)X509_CRL_match(3)X509_CRL_print(3)X509_CRL_sign(3)X509_EXTENSION_new(3)X509_INFO_new(3)X509_load_crl_file(3)X509_new(3)X509_OBJECT_get0_X509_CRL(3)X509_REVOKED_new(3)X509_STORE_CTX_set0_crls(3)X509_STORE_get1_crls(3)
β STANDARDS β
RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile, section 5: CRL and CRL Extensions Profile. That's the source material, iykyk. π
π HISTORY π
X509_CRL_new(),X509_CRL_free(),X509_CRL_INFO_new(), andX509_CRL_INFO_free()first appeared in SSLeay 0.4.4. π§X509_CRL_dup()first appeared in SSLeay 0.5.1. π¦- These functions have been available since OpenBSD 2.4. π‘
X509_CRL_up_ref()first appeared in OpenSSL 1.1.0 and has been available since OpenBSD 6.3. π₯
π that's the whole page, bestie. source/version: Debian; date: March 6, 2024. periodt. π
π¦ where this page comes from
- opensuse-leap 16.0: libressl-devel-doc 4.1.0-bp160.1.1 Β· OpenSSL
- Copyright (c) 2016, 2018, 2021 Ingo Schwarze <schwarze@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms