gnutls_ocsp_resp_get_signature(3)
β¨ NAME β¨
gnutls_ocsp_resp_get_signature β bestie, this is the API function that yoinks the signature out of an OCSP response π
okay so real quick β this whole page lives in the gnutls manual, section 3, so like gnutls_ocsp_resp_get_signature(3), and it's giving "crypto librarian energy" fr fr.
πΈ SYNOPSIS πΈ
#include <gnutls/ocsp.h>
int gnutls_ocsp_resp_get_signature(gnutls_ocsp_resp_const_t resp,
gnutls_datum_t * sig);
π ARGUMENTS π
gnutls_ocsp_resp_const_t respβ this one should contain agnutls_ocsp_resp_ttype. like it's the OCSP response you're digging through, and yes it's const because we're just looking, not touching πgnutls_datum_t * sigβ a newly allocated output buffer that gets the signature data dropped into it. not me handing you a fresh lil buffer and filling it with signature bytes π«Ά
π DESCRIPTION π
So the way that this works: this function will extract the signature field of a OCSP response. that's it. that's the whole job. it grabs the signature and puts it in your buffer, iconic behaviour, no notes π
π RETURNS π
On success, GNUTLS_E_SUCCESS (which is literally 0, slay) is returned. otherwise you get a negative error value, which is your sign that something went sideways π
π¦ REPORTING BUGS π¦
Found a bug? don't suffer in silence bestie, 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. (translation: take it, share it, just 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, visit
https://www.gnutls.org/manual/
iykyk πΈ
and that's the whole page, no cap. this came out of gnutls version 3.8.13 β mwah, periodt π β¨π¦
π¦ 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