gnutls_x509_cr...extension_data2(3)

✨ NAME ✨

gnutls_x509_crl_get_extension_data2 β€” okay bestie, this is an API function πŸ’– it lives in the gnutls manual and it's your girl for pulling extension data out of a CRL. iykyk πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crl_get_extension_data2(gnutls_x509_crl_t crl, unsigned
indx, gnutls_datum_t * data);

like. look at her. she's gorgeous. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_crl_t crl β€” this one should contain a gnutls_x509_crl_t type, no cap. it's the whole CRL you're digging around in πŸ’–
  • unsigned indx β€” Specifies which extension OID to read. Use (0) to get the first one. yes literally zero. start at zero. not one. zero πŸ™ˆ
  • gnutls_datum_t * data β€” will contain the extension DER-encoded data. so this is where the good stuff lands ✨

πŸ’œ DESCRIPTION πŸ’œ

This function will return the requested by the index extension data in the certificate revocation list. certificate revocation list, bestie, that's the CRL, we're in CRL territory πŸ‘‘

The extension data will be allocated using gnutls_malloc(). so like, she allocates for you, that's the vibe 🌈

Use gnutls_x509_crt_get_extension_info() to extract the OID. yes the CRT one. not the CRL one. that's not a typo, that's just what the docs say, so write it down πŸ“


⭐ RETURNS ⭐

On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error code is returned. 😭

If you have reached the last extension available GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned. so when you're at the end, she tells you. that's your sign to stop looping πŸ’€


πŸ› REPORTING BUGS πŸ›

Report bugs to <bugs@gnutls.org>. Home page: https://www.gnutls.org

yes actually email them, they want to know 🫢


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. periodt. πŸ’…


🌈 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/

go look, it's giving lore πŸ“š


and that's the whole page, bestie πŸŽ€ this one's from the gnutls manual, version 3.8.13, and the page itself is gnutls_x509_cr...extension_data2(3) β€” mwah, slay, go read your CRL extensions πŸ’–βœ¨πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from