gnutls_x509_crl_get_crt_serial(3)
π gnutls_x509_crl_get_crt_serial(3) π
okay bestie, welcome to the gnutls manual, and today's main character is gnutls_x509_crl_get_crt_serial. it's giving "let me pull one specific revoked cert's serial number out of this CRL" energy, and honestly? we're obsessed. π
β¨ NAME β¨
gnutls_x509_crl_get_crt_serial β API function πΈ
π¦ SYNOPSIS π¦
#include <gnutls/x509.h>
int gnutls_x509_crl_get_crt_serial(gnutls_x509_crl_t crl, unsigned indx,
unsigned char * serial, size_t * serial_size, time_t * t);
π ARGUMENTS π
gnutls_x509_crl_t crlβ this one should contain agnutls_x509_crl_ttype. it's the CRL we're snooping in, no cap. π₯unsigned indxβ the index of the certificate to extract, and yes babe, it starts from0. zero-indexed girlies rise. β¨unsigned char * serialβ where the serial number will be copied. this is the lil landing pad for the goods. π«Άsize_t * serial_sizeβ initially holds the size ofserial. so you tell it how much room you got, it tells you what's up. πtime_t * tβ if non null, will hold the time this certificate was revoked. literally the "when did this go down" timestamp. π
π DESCRIPTION π
so what does this do? this function will retrieve the serial number of the specified, by the index, revoked certificate. that's it. that's the whole vibe. you give it an index, it hands you the serial of the revoked cert sitting at that spot in the CRL. π
lowkey important warning bestie: note that this function will have performance issues in large sequences of revoked certificates. in that case use gnutls_x509_crl_iter_crt_serial(). like, if your CRL is a whole saga, don't do this. use the iterator. periodt. π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so 0 = slay, negative = not slay, and you go check that error code. πΈ
π REPORTING BUGS π
found a bug? don't be shy, report it:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
π 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. (iconic, generous, no strings attached. we love to see it. π§)
π₯ 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!! this was the gnutls_x509_crl_get_crt_serial(3) manual from gnutls version 3.8.13 β go forth, read your CRLs, and remember: if the list is huge, use the iterator. mwah. π
πβ¨π¦πΈ
π¦ 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