X509_CINF_NEW(3)
πΈ NAME πΈ
okay so bestie, welcome to X509_CINF_NEW(3) from the Library Functions Manual π
this is the page for X509_CINF_new, X509_CINF_free, X509_VAL_new, X509_VAL_free, X509_CERT_AUX_new, and X509_CERT_AUX_free β literally the X.509 certificate information objects squad π
β¨ SYNOPSIS β¨
library βlibcryptoβ #include <openssl/x509.h>
X509_CINF *
X509_CINF_new(void);
void
X509_CINF_free(X509_CINF *inf);
X509_VAL *
X509_VAL_new(void);
void
X509_VAL_free(X509_VAL *val);
X509_CERT_AUX *
X509_CERT_AUX_new(void);
void
X509_CERT_AUX_free(X509_CERT_AUX *aux);
π DESCRIPTION π
X509_CINF_new() allocates and initializes an empty X509_CINF object β representing an ASN.1 TBSCertificate structure defined in RFC 5280 section 4.1 π¦ it is used inside the X509 object and holds the main information contained in the X.509 certificate including subject, public key, issuer, serial number, validity period, and extensions. X509_CINF_free() frees inf.
X509_VAL_new() allocates and initializes an empty X509_VAL object β representing an ASN.1 Validity structure defined in RFC 5280 section 4.1 β¨ it is used inside the X509_CINF object and holds the validity period of the certificate. X509_VAL_free() frees val.
X509_CERT_AUX_new() allocates and initializes an empty X509_CERT_AUX structure π it can be used inside an X509 object to hold optional non-standard auxiliary data appended to a certificate, for example friendly alias names and trust data. X509_CERT_AUX_free() frees aux.
π«Ά RETURN VALUES π«Ά
X509_CINF_new(), X509_VAL_new(), and X509_CERT_AUX_new() return the new X509_CINF, X509_VAL, or X509_CERT_AUX object, respectively, or NULL if an error occurs π
no cap: if it goes wrong, the answer is NULL.
π₯ SEE ALSO π₯
π STANDARDS π
RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile
π HISTORY π
X509_CINF_new(), X509_CINF_free(), X509_VAL_new(), and X509_VAL_free() appeared in SSLeay 0.4 or earlier and have been available since OpenBSD 2.4 β
X509_CERT_AUX_new() and X509_CERT_AUX_free() first appeared in OpenSSL 0.9.5 and have been available since OpenBSD 2.7 π
mwah π thatβs the whole page, bestie. source/version shoutout: Debian, dated June 8, 2025 β footer icon X509_CINF_NEW(3) forever. bye π«Άβ¨
π¦ where this page comes from
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2016 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