X509_CRL_PRINT(3)

πŸ“¦ version 4.4.0, in alpine 3.24, arch rolling

✨ X509_CRL_PRINT ✨

okay so bestie, welcome to the X509_CRL_PRINT(3) page πŸ’… this is one of those manual pages from the libcrypto library, and honestly? it's giving "let me spill all the tea about a certificate revocation list." Periodt.


🌸 SYNOPSIS 🌸

#include <openssl/x509.h>
int
X509_CRL_print(BIO *bio, X509_CRL *crl);

int
X509_CRL_print_fp(FILE *fp, X509_CRL *crl);

yep, that's it β€” two little functions, both living their best life inside libcrypto 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

the main character: X509_CRL_print()

X509_CRL_print() takes everything contained in crl and prints it to bio in human-readable form. And it does it in this exact order, no cap:

and the sibling: X509_CRL_print_fp()

X509_CRL_print_fp() is literally the same vibe as X509_CRL_print() β€” the one difference? it prints to fp. that's it, that's the whole personality 🌈


⭐ RETURN VALUES ⭐

these functions are intended to return 1 for success and 0 for error. intended. keep that word in mind, we'll circle back in a sec πŸ™ˆ


🧚 SEE ALSO 🧚

BIO_new(3), X509_CRL_new(3), X509_print_ex(3), X509_REVOKED_new(3) β€” go read those too, iykyk πŸ“š


πŸŽ€ HISTORY πŸŽ€

these functions first appeared in OpenSSL 0.9.2 and have been available since OpenBSD 2.6. vintage, honestly. lowkey elder icons πŸ•°οΈ


πŸ’€ BUGS πŸ’€

bestie. sit down. we need to talk.
  • most I/O errors are silently ignored. like, not even a little "hey something went wrong" β€” just silence. and even if the information printed is incomplete, these functions may return 1 anyway 😭 so yeah, "intended" is doing a lot of heavy lifting up there in RETURN VALUES.
  • if the version number is invalid, no information from the CRL is printed and the functions fail. fair enough, honestly 🫢

and that's the page, bestie! Debian, June 8, 2025 β€” mwah, go print some CRLs responsibly πŸ’œβœ¨

πŸ“¦ where this page comes from