gnutls_x509_cr...y_key_gn_serial(3)
π gnutls_x509_cr...y_key_gn_serial(3) π
okay bestie, so this is a page from the gnutls manual, and today's main character is gnutls_x509_crt_get_authority_key_gn_serial. yes the name is a whole paragraph, we don't make the rules, we just slay within them π
β¨ NAME β¨
gnutls_x509_crt_get_authority_key_gn_serial β an API function, no cap π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crt_get_authority_key_gn_serial(gnutls_x509_crt_t cert,
unsigned int seq, void * alt, size_t * alt_size, unsigned int *
alt_type, void * serial, size_t * serial_size, unsigned int * critical);
likeβ¦ look at that signature. that's seven parameters. it's giving overachiever and honestly? obsessed π¦
π«Ά ARGUMENTS π«Ά
gnutls_x509_crt_t certβ should contain agnutls_x509_crt_ttype. yes bestie, a cert. the whole point.unsigned int seqβ specifies the sequence number of the alt name (0for the first one,1for the second etc.). it's a little counter, ok? 0, 1, 2, keep going until the data runs out.void * altβ is the place where the alternative name will be copied to. your lil destination buffer πsize_t * alt_sizeβ holds the size ofalt.unsigned int * alt_typeβ holds the type of the alternative name (one ofgnutls_x509_subject_alt_name_t).void * serialβ buffer to store the serial number (may be null).size_t * serial_sizeβ Holds the size of the serial field (may be null).unsigned int * criticalβ will be non-zero if the extension is marked as critical (may be null). so if it's giving critical energy, you'll know π₯
π DESCRIPTION π
This function will return the X.509 authority key identifier when stored as a general name (authorityCertIssuer) and serial number.
Because more than one general names might be stored, seq can be used as a counter to request them all until GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE is returned.
not me looping through every single one like it's a group chat scroll-back πseqis literally your "keep going" button, andGNUTLS_E_REQUESTED_DATA_NOT_AVAILABLEis the "okay that's the end of the thread" moment. periodt.
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned, GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE if the extension is not present, otherwise a negative error value.
so: zero = ate. GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE = the extension simply isn't there, no drama. anything negative = something went sideways, read the error bestie π
π SINCE π
3.0
π REPORTING BUGS π
Report bugs to <bugs@gnutls.org>. Home page: https://www.gnutls.org
found a bug? tell the gnutls girlies directly, they want to know fr fr π«Ά
π COPYRIGHT π
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.
πΈ 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/
and that's the whole page bestie, you understood it, I'm so proud of you π this was written for gnutls version 3.8.13, the same gnutls crew whose gnutls_x509_cr...y_key_gn_serial(3) page this is β go forth and go get that authority key identifier, you've got main character energy and the manpage to match β¨π¦π
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms