gnutls_ocsp_st...uest_is_checked(3)
π gnutls_ocsp_status_request_is_checked β a whole manual page, bestie
okay so we're in the gnutls manual (yes, that gnutls) and today's main character is gnutls_ocsp_status_request_is_checked(3). it's an API function. she's a helper. she's lowkey iconic. let's get into it π
β¨ NAME β¨
gnutls_ocsp_status_request_is_checked β API function π
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
unsigned gnutls_ocsp_status_request_is_checked(gnutls_session_t session,
unsigned int flags);
π¦ ARGUMENTS π¦
gnutls_session_t sessionβ bestie. it's a gnutls session. that's the vibe. πunsigned int flagsβ should be zero, orGNUTLS_OCSP_SR_IS_AVAIL. pick one, queen, no in-between. β¨
π DESCRIPTION π
so when flags are zero, this function returns non-zero if a valid OCSP status response was included in the TLS handshake. and what counts as valid, you ask? one that is not too old, not superseded, and not marking the certificate as revoked. if it doesn't pass that vibe check, you get zero back. periodt. π
when the flag GNUTLS_OCSP_SR_IS_AVAIL is specified, the function returns non-zero if an OCSP status response was included in the handshake even if it was invalid. like, she showed up, she counts. otherwise, if no OCSP status response was included at all, it returns zero. the GNUTLS_OCSP_SR_IS_AVAIL flag was introduced in GnuTLS 3.4.0, for the record. ποΈβ¨
this is a helper function for when you need to decide whether to perform an explicit OCSP validity check on the peer's certificate. and you should call it after any of gnutls_certificate_verify_peers*() are called. order matters, bestie, don't skip steps. π
also!! this function is always usable on client side, but on server side only under TLS 1.3 β which is the first version of TLS that allows clients to send OCSP responses. server girlies, know your limits. π
β RETURNS β
Non-zero if the response was valid. zero if it wasn't sent, or if it was sent and was invalid. simple as. π«Ά
π SINCE π
3.1.4 β she's been around. legacy queen. π
π REPORTING BUGS π
found a bug? don't be shy, tell the devs:
- 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.
(no cap, that's genuinely generous of them π₯Ή)
π§ 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!! go forth and check those OCSP status requests responsibly πβ¨
this has been the gnutls manual, version 3.8.13, page gnutls_ocsp_st...uest_is_checked(3) β mwah, slay, 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