GNUTLS_X509_CRL_GET_EXTENSION_DATA(3)

✨ NAME ✨

gnutls_x509_crl_get_extension_data β€” bestie, this is an API function πŸ’– (and yes, we're in the gnutls manual, welcome to the group chat 🫢)


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crl_get_extension_data(gnutls_x509_crl_t crl, unsigned
indx, void * data, size_t * sizeof_data);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_crl_t crl β€” okay so this one should contain a gnutls_x509_crl_t type, that's literally its whole job πŸ’…
  • unsigned indx β€” tells it which extension OID to send. Start with (0) to get the first one, like the very first slide of the carousel ✨
  • void * data β€” a pointer to a structure that'll hold the data (may be null, no pressure, she's flexible πŸ™ˆ)
  • size_t * sizeof_data β€” initially holds the size of oid πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

So this function will return the requested extension data in the CRL. The extension data gets stored as a string in the buffer you handed over. Iconic behaviour, honestly πŸ‘‘

Use gnutls_x509_crl_get_extension_info() to extract the OID and the critical flag. And listen β€” use gnutls_x509_crl_get_extension_info() instead if you want to get data indexed by the extension OID rather than by sequence. Different vibe, different function, iykyk πŸ”₯


⭐ RETURNS ⭐

On success, GNUTLS_E_SUCCESS (0) is returned β€” slay. Otherwise you get a negative error code because something went wrong 😭. And if you've reached the last extension available, GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned. That's not a bug bestie, that's just the end of the line 🚫


πŸ¦‹ SINCE πŸ¦‹

2.8.0 β€” she's been around a while, a true veteran πŸ’€


🌈 REPORTING BUGS 🌈

Found a bug? Report it to <bugs@gnutls.org> β€” they wanna hear it fr fr.

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. (Yes, you can share it, just don't be weird about the notice πŸ’–)


πŸ’« 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/

okay that's the whole page, you ate that 🫢 this was the gnutls man page, version 3.8.13, page gnutls_x509_crl_get_extension_data(3) β€” go forth and read your CRL extensions, main character πŸ’…βœ¨

πŸ“¦ where this page comes from