gnutls_ocsp_status_request_get2(3)
π gnutls_ocsp_status_request_get2(3) π
okay so bestie, welcome to the gnutls manual page for gnutls_ocsp_status_request_get2 β yes it's a long name, yes it's an API function, and yes we're gonna get through it together π«Ά
β¨ NAME β¨
gnutls_ocsp_status_request_get2 β it's an API function, and it's here to hand you back an OCSP status response. iconic behavior tbh π
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int gnutls_ocsp_status_request_get2(gnutls_session_t session, unsigned
idx, gnutls_datum_t * response);
like. look at that signature. she's serving C, she's serving clarity π
π ARGUMENTS π
gnutls_session_t sessionβ bestie this is just agnutls_session_ttype. that's it. that's the whole vibe.unsigned idxβ the index of the peer's certificate. think of it like a little numbered seat at the table πͺgnutls_datum_t * responseβ agnutls_datum_tholding the DER encoded OCSP response. DER encoded, no cap.
π¦ DESCRIPTION π¦
okay so here's the tea β this function returns the OCSP status response that came in from the TLS server, specifically for the certificate index you handed it.
and the index? it lines up with the certificates as returned by gnutls_certificate_get_peers. so they're matching sets, like bestie bracelets fr fr π
when the index is zero, this function operates identically to gnutls_ocsp_status_request_get(). same energy, no notes.
the returned response should be treated as constant. do not go messing with it, she is not yours to edit π
and if there's no OCSP response available for the given index? you get GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE back. it's giving "we looked, she's not here" π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned π otherwise a negative error code comes back. negative. like the vibes after a failed request π
π SINCE π
3.6.3 β she's been around, she's established, she's lowkey a legend π§
π REPORTING BUGS π
found a bug? do NOT suffer in silence bestie, report it to <bugs@gnutls.org>. they wanna hear it.
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, that means the whole thing β the notice and this notice, both preserved, periodt β¨)
π 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, you ate that π«Ά this was gnutls_ocsp_status_request_get2(3) from gnutls 3.8.13 β go forth, call your function, treat that response as constant, 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