gnutls_ocsp_resp_import2(3)
π gnutls_ocsp_resp_import2(3) π
okay bestie, welcome to the gnutls manual (section 3, we're fancy like that) β and today's main character is gnutls_ocsp_resp_import2. it's giving "turn your OCSP response into a real live object" energy, and honestly? obsessed. π¦
β¨ NAME β¨
gnutls_ocsp_resp_import2 β literally just an API function, no cap π
πΈ SYNOPSIS πΈ
#include <gnutls/ocsp.h>
int gnutls_ocsp_resp_import2(gnutls_ocsp_resp_t resp, const
gnutls_datum_t * data, gnutls_x509_crt_fmt_t fmt);
π ARGUMENTS π
gnutls_ocsp_resp_t respβ bestie this is the β¨destinationβ¨, the place where the parsed response gets stored. the data to store the parsed response, fr fr.const gnutls_datum_t * dataβ the OCSP response itself, and it can be DER or PEM encoded. either one, she contains multitudes πgnutls_x509_crt_fmt_t fmtβ DER or PEM. that's it. that's the whole job description π«Ά
π DESCRIPTION π
so what does she actually do? this function will convert the given OCSP response into the native gnutls_ocsp_resp_t format. and not only that β she also decodes the Basic OCSP Response part, if any (if any!! like, don't @ her if it's not there, she handles it).
the output? yeah, that goes into resp. the way she just... puts it there. iconic. π
β RETURNS β
on success, GNUTLS_E_SUCCESS (which is 0) is returned π
otherwise? a negative error value. not a slay. π
π§ SINCE π§
3.6.3 β she's been around, she's a legend, she's vintage but make it cute πΈ
π REPORTING BUGS π
found a bug? don't suffer in silence, spill 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. (yes bestie, you can share it, that's the whole vibe π)
π¦ 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 tea, bestie π this page came to you from gnutls version 3.8.13, in manual section 3, and it's exactly gnutls_ocsp_resp_import2(3). go forth and parse responsibly π
β¨
π¦ 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