GNUTLS_OCSP_STATUS_REQUEST_ENABLE_CLIENT(3)
π NAME π
gnutls_ocsp_status_request_enable_client β bestie, this is an API function and it's about to make your client go "hey server, got any OCSP tea for me?" π
It lives in the gnutls manual, and yes, the whole page title is basically a keyboard smash, iykyk. π
β¨ SYNOPSIS β¨
#include <gnutls/gnutls.h>
int gnutls_ocsp_status_request_enable_client(gnutls_session_t session,
gnutls_datum_t * responder_id, size_t responder_id_size, gnutls_datum_t
* extensions);
That's a lot of words for one function, but we move. π
π ARGUMENTS π
gnutls_session_t sessionβ it's agnutls_session_ttype, your lil session baddie. The main character here, fr fr. πgnutls_datum_t * responder_idβ ignored, must beNULL. Not optional, not vibes-based.NULLor nothing. πsize_t responder_id_sizeβ ignored, must be zero. Literally just put a0there and keep it pushing. πgnutls_datum_t * extensionsβ ignored, must beNULL. Same energy asresponder_id. Don't get cute with it. β¨
Okay but notice how three out of four args are just... there? That's not a typo, that's a whole lore drop. Keep reading. π
πΈ DESCRIPTION πΈ
So here's the vibe: this function is for clients, and you use it to request an OCSP response from the server, using the "status_request" TLS extension. That's the whole point. π«Ά
Only the OCSP status type is supported. Just the one. That's it. Periodt.
Now for the plot twist, because there lowkey always is one: previous versions of GnuTLS did let you set the responder_id and extensions fields. But because the semantics of how those parameters get used were genuinely difficult, plus some other issues, that support was removed since 3.6.0. So now those parameters must be set to NULL. No cap.
β οΈ Heads up: if you're on old code or old docs that show you passing real values intoresponder_idorextensions, that's the old way. Since 3.6.0 it's gone. PassNULL, pass0, and let the function do its thing. π₯
π« RETURNS π«
On success, GNUTLS_E_SUCCESS (0) is returned. Otherwise you get a negative error code β which is the API's way of saying "not me catching an L". π
π¦ SINCE π¦
3.1.3 β she's been around a minute, she's iconic, she's seen things. π
π REPORTING BUGS π
Found a bug? Don't just scream into the group chat, actually 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. 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 page, bestie!! πβ¨ This one's from gnutls 3.8.13, filed under gnutls_ocsp_status_request_enable_client(3) β go forth and request those OCSP responses responsibly. Slay. π
π
π¦ 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