OpenBSD manual page server

Manual Page Search Parameters

D2I_X509_CRL(3) Library Functions Manual D2I_X509_CRL(3)

d2i_X509_CRL, i2d_X509_CRL, d2i_X509_CRL_bio, d2i_X509_CRL_fp, i2d_X509_CRL_bio, i2d_X509_CRL_fp, d2i_X509_CRL_INFO, i2d_X509_CRL_INFO, d2i_X509_REVOKED, i2d_X509_REVOKEDdecode and encode X.509 certificate revocation lists

#include <openssl/x509.h>

X509_CRL *
d2i_X509_CRL(X509_CRL **val_out, const unsigned char **der_in, long length);

int
i2d_X509_CRL(X509_CRL *val_in, unsigned char **der_out);

X509_CRL *
d2i_X509_CRL_bio(BIO *in_bio, X509_CRL **der_out);

X509_CRL *
d2i_X509_CRL_fp(FILE *in_fp, X509_CRL **der_out);

int
i2d_X509_CRL_bio(BIO *out_bio, X509_CRL *der_in);

int
i2d_X509_CRL_fp(FILE *out_fp, X509_CRL *der_in);

X509_CRL_INFO *
d2i_X509_CRL_INFO(X509_CRL_INFO **val_out, const unsigned char **der_in, long length);

int
i2d_X509_CRL_INFO(X509_CRL_INFO *val_in, unsigned char **der_out);

X509_REVOKED *
d2i_X509_REVOKED(X509_REVOKED **val_out, const unsigned char **der_in, long length);

int
i2d_X509_REVOKED(X509_REVOKED *val_in, unsigned char **der_out);

These functions decode and encode X.509 certificate revocation lists. For details about the semantics, examples, caveats, and bugs, see ASN1_item_d2i(3).

() and () decode and encode an ASN.1 CertificateList structure defined in RFC 5280 section 5.1.

If X509_CRL_set_default_method(3) is in effect and the () callback is not NULL, that callback is invoked at the end of d2i_X509_CRL().

(), (), (), and () are similar except that they decode or encode using a BIO or FILE pointer.

() and () decode and encode an ASN.1 TBSCertList structure defined in RFC 5280 section 5.1.

() and () decode and encode an ASN.1 structure representing one element of the revokedCertificates field of the ASN.1 TBSCertList structure.

ASN1_item_d2i(3), X509_CRL_METHOD_new(3), X509_CRL_new(3), X509_REVOKED_new(3)

RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile, section 5: CRL and CRL Extensions Profile

d2i_X509_CRL(), i2d_X509_CRL(), d2i_X509_CRL_fp(), i2d_X509_CRL_fp(), d2i_X509_CRL_INFO(), i2d_X509_CRL_INFO(), d2i_X509_REVOKED(), and i2d_X509_REVOKED() first appeared in SSLeay 0.5.1. d2i_X509_CRL_bio() and i2d_X509_CRL_bio() first appeared in SSLeay 0.6.0. These functions have been available since OpenBSD 2.4.

October 30, 2021 OpenBSD-7.3