gnutls_ocsp_resp_get_nonce(3)
π
gnutls_ocsp_resp_get_nonce β the gnutls manual, bestie edition β¨
okay so picture this: you're deep in the gnutls man pages (iconic behavior, love that for you) and you land on gnutls_ocsp_resp_get_nonce(3). It's an API function. It's giving "quietly essential". Let's get into it π
β¨ SYNOPSIS β¨
#include <gnutls/ocsp.h>
int gnutls_ocsp_resp_get_nonce(gnutls_ocsp_resp_const_t resp, unsigned
int * critical, gnutls_datum_t * nonce);
like, she's a whole function and she takes three things. slay π
π«Ά ARGUMENTS π«Ά
gnutls_ocsp_resp_const_t respβ this one should contain agnutls_ocsp_resp_ttype. that's the whole vibe, no notes.unsigned int * criticalβ tells you whether the nonce extension is marked critical. yes, that's literally what it's for πΈgnutls_datum_t * nonceβ this bad boy will hold a newly allocated buffer with the nonce data. fresh out of the oven, not yours yet, we'll get to that π
π DESCRIPTION π
This function will return the Basic OCSP Response nonce extension data. that's it, that's the job, and she does it well π
now the important part, bestie, listen up: the caller needs to deallocate memory by calling gnutls_free() on nonce->data.
π¨ not me letting you leak memory... free it withgnutls_free()onnonce->dataor the vibe check will fail. no cap.
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error code is returned. so like, zero is the good one here. don't panic when you see a 0, that's the win π
π REPORTING BUGS π
Found something cursed? Report bugs to <bugs@gnutls.org>.
Home page: https://www.gnutls.org
they're genuinely lovely, they wanna hear from you π«Ά
π 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.
(that's the legal text, verbatim, because we respect the paperwork in this house π)
π¦ 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/
iykyk, that's where the lore lives πβ¨
and that's the whole page, bestie!! this lil masterpiece comes to you from gnutls version 3.8.13, and the page itself is gnutls_ocsp_resp_get_nonce(3). go forth, grab that nonce, free your buffer, main character energy only πΈππ
π¦ 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