gnutls_x509_crl_export(3)

πŸ’– gnutls_x509_crl_export β€” bestie edition πŸ’–

okay so this one lives in the gnutls manual (section 3, the library-functions girlies ✨) and it's literally called gnutls_x509_crl_export. no cap, that's the whole name. let's get into it 🫢


✨ NAME ✨

gnutls_x509_crl_export β€” it's an API function, bestie. that's the vibe. πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crl_export(gnutls_x509_crl_t crl, gnutls_x509_crt_fmt_t
format, void * output_data, size_t * output_data_size);

like. look at her. main character signature fr fr πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_crl_t crl β€” this bad girl holds the revocation list. she's the whole point, ok? the CRL in question.
  • gnutls_x509_crt_fmt_t format β€” the format of the output params. it's one of PEM or DER, pick your fighter πŸ’«
  • void * output_data β€” this is gonna contain a private key PEM or DER encoded. yeah that's what the manpage says, we're not questioning it, we're just delivering the facts bestie πŸ™ˆ
  • size_t * output_data_size β€” holds the size of output_data, and it will be replaced by the actual size of the parameters. so it's a lil two-way street, she goes in with one value and comes out with another. iconic behavior honestly ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, this function will export the revocation list to DER or PEM format. that's it, that's the job. she ate and left no crumbs πŸ’…

and like, important detail: if the buffer you provided is not long enough to hold the output, then GNUTLS_E_SHORT_MEMORY_BUFFER gets returned. so don't come crying when your buffer's too smol β€” the function will literally tell you. periodt πŸ’€

also! if the structure is PEM encoded, it's gonna have a header of "BEGIN X509 CRL". cute little banner for your cute little CRL, we love to see it 🌈


⭐ RETURNS ⭐

on success, GNUTLS_E_SUCCESS (0) is returned πŸŽ‰ otherwise you get a negative error value. so like, zero is the good one, negative means something went sideways. vibe check accordingly 😭


😭 REPORTING BUGS 😭

found a bug? don't gatekeep, tell the girlies. report bugs to <bugs@gnutls.org> 🫢

home page: https://www.gnutls.org


Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.

copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. so like, go off, share the love, just keep the receipts bestie 🧚


🌈 SEE ALSO 🌈

the full documentation for gnutls is maintained as a Texinfo manual. if the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit:

https://www.gnutls.org/manual/

iykyk, that's where the deep lore lives πŸ“šβœ¨


ok that's the whole page, no notes, we kept every single detail because that's what besties do πŸ’–

and that's a wrap! this page came to you from gnutls 3.8.13 β€” mwah, slay, bye πŸ‘‘πŸ’…πŸŽ€

πŸ“¦ where this page comes from