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 a gnutls_ocsp_resp_t type. 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 Β© 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