gnutls_x509_ct_sct_get_version(3)
π gnutls_x509_ct_sct_get_version(3) β the gnutls manual, but make it cute π
okay bestie, sit down, hydrate, and let me tell you about this lil function from the gnutls manual. it's called gnutls_x509_ct_sct_get_version and it is exactly what it sounds like: you hand it a list of SCTs, you point at one of them, and it tells you which version that one is. that's it. that's the whole job. she's simple, she's focused, she's giving β¨single responsibilityβ¨.
πΈ NAME πΈ
gnutls_x509_ct_sct_get_version β API function π
like. the name is the description. the way that gnutls just tells you. obsessed.
β¨ SYNOPSIS β¨
#include <gnutls/x509-ext.h>
int gnutls_x509_ct_sct_get_version(gnutls_x509_ct_scts_t scts, unsigned
idx, unsigned int * version_out);
yes the header is <gnutls/x509-ext.h>, don't forget it, i will know π
π«Ά ARGUMENTS π«Ά
gnutls_x509_ct_scts_t sctsβ a list of SCTs. your little squad of SCTs. the roster. the group chat, if you will πunsigned idxβ the index of the target SCT in the list. which one are we looking at, bestie? pick a number πunsigned int * version_outβ the version of the target SCT. this is where the answer lands. she's an out-param and she's thriving.
π DESCRIPTION π
so here's the vibe. this function obtains the version of the SCT at the given position in the SCT list. that's the whole plot. no twists. main character energy but the plot is just "tell me the version" and honestly? relatable.
the version of that SCT will be placed on version_out. put it down, write it out, leave it there for you. π¦
Return: GNUTLS_E_SUCCESS (0) is returned on success β yay, slay, we ate π
but also, the receipts:
GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLEifidxexceeds the number of SCTs in the list. you asked for SCT number 47 in a list of 3. she's not there. she never was. πGNUTLS_E_INVALID_REQUESTif the SCT's version is different than1, as that's currently the only defined version. this is a real one β version1is literally the only version that exists rn, so anything else gets bounced. no cap.
ngl, keep an eye on that second error code. "currently the only defined version" is doing a lot of work in that sentence, and it's not a vibe you get to argue with.
π REPORTING BUGS π
found a bug? first of all, sorry bestie. second of all, tell the gnutls people, not me:
- 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. yes queen, royalty-free, go forth and redistribute. β¨
π 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/
like, go read the manual manual. iykyk ππ
and that's the whole page, bestie!! gnutls, version 3.8.13, straight from the gnutls_x509_ct_sct_get_version(3) corner of the gnutls manual β love her, read her, return GNUTLS_E_SUCCESS and go touch some grass πΈπ¦π
π¦ 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