gnutls_certifi...us_request_file(3)
π gnutls_certificate_set_ocsp_status_request_file π
okay bestie, sit down, hydrate, because we're talking about the gnutls manual page for gnutls_certificate_set_ocsp_status_request_file(3) β and it's giving certificate status, but make it fashion. π
β¨ NAME β¨
gnutls_certificate_set_ocsp_status_request_file β it's an API function, no cap π
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int
gnutls_certificate_set_ocsp_status_request_file(gnutls_certificate_credentials_t
sc, const char * response_file, unsigned idx);
like, three args, one return value, we move π¦
π«Ά ARGUMENTS π«Ά
gnutls_certificate_credentials_t scβ this is your credentials structure, the whole vibe container bestie πconst char * response_fileβ literally just a filename, but make it the filename of the OCSP response βunsigned idxβ a certificate index, and the way you get one is fromgnutls_certificate_set_key()and friends π (yes, "and friends", the manpage said it, iconic)
π DESCRIPTION π
So this function loads the provided OCSP response. That's it, that's the job. β¨
Then it will be sent to the client β if the client requests an OCSP certificate status for the certificate chain specified by idx. Conditional queen. π
π NOTE π
okay this is the part where you actually have to pay attention, bestie, no scrolling:
- the ability to set multiple OCSP responses per credential structure via the index
idxwas added in version 3.5.6. To keep backwards compatibility, it requires usinggnutls_certificate_set_flags()with theGNUTLS_CERTIFICATE_API_V2flag to make the set certificate functions return an index usable by this function. π§ - This function can be called multiple times since GnuTLS 3.6.3 when multiple responses which apply to the chain are available. If the response provided does not match any certificates present in the chain, the code
GNUTLS_E_OCSP_MISMATCH_WITH_CERTSis returned. To revert to the previous behavior set the flagGNUTLS_CERTIFICATE_SKIP_OCSP_RESPONSE_CHECKin the certificate credentials structure. In that case, only the end-certificate's OCSP response can be set. If the response is already expired at the time of loading, the codeGNUTLS_E_EXPIREDis returned. π - To revert to the previous behavior of this function which does not return any errors, set the flag
GNUTLS_CERTIFICATE_SKIP_OCSP_RESPONSE_CHECK. (yes they said it twice. yes it still means it. periodt.) π
fr fr read that flag twice before you set it, that's the whole point of the note π
π₯ RETURNS π₯
On success, GNUTLS_E_SUCCESS (0) is returned β slay. Otherwise a negative error code is returned, and we simply do not claim that one. π
π SINCE π
3.1.3 β old money, honestly π
π REPORTING BUGS π
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.
π 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/
gnutls 3.8.13 β that's the version bestie, and yes this whole page is gnutls_certifi...us_request_file(3) energy from start to finish. go set your OCSP responses, you absolute main character π«Άπβ¨
π¦ 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