gnutls_ocsp_req_get_nonce(3)
π gnutls_ocsp_req_get_nonce β the manual page, but make it make sense π
okay bestie, so this is a page from the gnutls manual set, and today's main character is gnutls_ocsp_req_get_nonce, which is, like, an API function. that's the whole NAME situation. she's a function. she gets nonces. slay. β¨
π¦ SYNOPSIS π¦
#include <gnutls/ocsp.h>
int gnutls_ocsp_req_get_nonce(gnutls_ocsp_req_const_t req, unsigned int
* critical, gnutls_datum_t * nonce);
literally just include the header and call her. that's the vibe. π
πΈ ARGUMENTS πΈ
here's who's showing up to the function call, and what they're bringing:
gnutls_ocsp_req_const_t reqβ ngl this one should contain agnutls_ocsp_req_ttype. like, that's her whole job. she's the request you're pulling the nonce out of. πunsigned int * criticalβ this tells you whether the nonce extension is marked critical. it can also just beNULL, if you don't care about that level of detail. no pressure, bestie. πgnutls_datum_t * nonceβ okay so this one is gonna hold a newly allocated buffer with the nonce data in it. freshly allocated. brand new. she ate. π
β¨ DESCRIPTION β¨
so what does she actually do? this function returns the OCSP request nonce extension data. that's it, that's the plot. short and iconic. π
β οΈ important, don't skip this one: the caller needs to deallocate the memory by callinggnutls_free()onnonce->data. yes, you. the function is not gonna clean up after herself. if you forget, that memory is justβ¦ sitting there. forever. leaking. not the vibe. π
π RETURNS π
- on success,
GNUTLS_E_SUCCESS(0) is returned π«Ά - otherwise, a negative error code comes back at you π
that's it. zero means we're good. negative means go read the error code and handle your business.
π REPORTING BUGS π
found something cursed? report bugs to <bugs@gnutls.org>.
home page is over at 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. so like, go off, just keep the receipts. β
π§ 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 pulled from gnutls version 3.8.13, and yeah the page title was gnutls_ocsp_req_get_nonce(3) β you already knew that tho, iykyk. go free your nonce. gnutls_free() her. love u, bye πβ¨
π¦ 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