gnutls_ocsp_resp_import(3)
π gnutls_ocsp_resp_import β ok bestie, let's talk
so this is a page from the gnutls manual, section 3, and it's literally all about one little glow-up function: gnutls_ocsp_resp_import. buckle up π
β¨ NAME β¨
gnutls_ocsp_resp_import β an API function, and yes she's the main character π
β¨ SYNOPSIS β¨
#include <gnutls/ocsp.h>
int gnutls_ocsp_resp_import(gnutls_ocsp_resp_t resp, const
gnutls_datum_t * data);
β¨ ARGUMENTS β¨
gnutls_ocsp_resp_t respβ the lil container where the parsed response gets stored. it's giving "put it in the jar" π«const gnutls_datum_t * dataβ a DER encoded OCSP response. the raw material, the blueprint, the β¨sourceβ¨
β¨ DESCRIPTION β¨
okay so what does she actually do? this function takes that DER encoded OCSP response you handed over and converts it into the native gnutls_ocsp_resp_t format. no cap, it also decodes the Basic OCSP Response part, if any even exists β and if there isn't one, that's fine too, she's not gonna spiral about it π
the output? it gets stored in resp. that's the whole vibe. that's the assignment. periodt. π₯
β¨ RETURNS β¨
if everything goes right, you get GNUTLS_E_SUCCESS (which is literally 0, iconic β¨). if not? you get a negative error value. so like... a sad little negative number. we don't love that for you, but it happens π
β¨ REPORTING BUGS β¨
found a bug? not the cute kind?? π please 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. so like, go off, but keep the receipts π§Ύβ¨
β¨ 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, then bestie, go visit:
https://www.gnutls.org/manual/
and that's the whole page, babe π¦ this was the gnutls manual, version 3.8.13, and the page you were reading was gnutls_ocsp_resp_import(3). go import some OCSP responses, you've got this ππΈπ
π¦ 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