gnutls_ocsp_resp_get_response(3)
β¨ gnutls_ocsp_resp_get_response β¨
okay bestie so this one lives in the gnutls manual, section 3, and it's called gnutls_ocsp_resp_get_response β it's the API function that pulls the response type OID and the response data out of an OCSP response. let's get into it π
πΈ SYNOPSIS πΈ
#include <gnutls/ocsp.h>
int gnutls_ocsp_resp_get_response(gnutls_ocsp_resp_const_t resp,
gnutls_datum_t * response_type_oid, gnutls_datum_t * response);
π ARGUMENTS π
gnutls_ocsp_resp_const_t respβ this one should contain agnutls_ocsp_resp_ttype, like it's literally holding your OCSP response for you π«Άgnutls_datum_t * response_type_oidβ a newly allocated output buffer that gets the response type OID dropped into it β¨gnutls_datum_t * responseβ a newly allocated output buffer that gets the DER encoded response π
π¦ DESCRIPTION π¦
so what this function actually does: it extracts the response type OID and the response data from an OCSP response. iconic behaviour, no cap.
normally the response_type_oid is always "1.3.6.1.5.5.7.48.1.1" which means the response should be decoded as a Basic OCSP Response β but technically, other response types could be used. the vibes are usually the same but the spec leaves room π«
this function is typically only useful when you want to extract the response type OID of a response for diagnostic purposes. otherwise gnutls_ocsp_resp_import() will decode the basic OCSP response part and the caller need not worry about that aspect. so likeβ¦ if you're just here for the normal flow, go use that one, bestie π
since 3.7.0,response_type_oidβsizedoes not account for the terminating null byte. remember that. it's giving "tiny detail, big consequences" π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. slay when it's zero, crying when it's not π₯²
π REPORTING BUGS π
found a bug? don't gatekeep it, report it 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. 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 it π
this was gnutls_ocsp_resp_get_response(3), from gnutls version 3.8.13 β mwah, go read the rest of the manual, ily πβ¨
π¦ 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