gnutls_ocsp_re...esponder_raw_id(3)
β¨ gnutls_ocsp_resp_get_responder_raw_id β¨
okay bestie, so this little icon lives in the gnutls manual (section 3, the library functions section, iykyk), and it's literally an API function. yes, the header at the top of the page said gnutls_ocsp_re...esponder_raw_id(3) because apparently even the manpage title got tired halfway through typing, but we move π
πΈ SYNOPSIS πΈ
#include <gnutls/ocsp.h>
int gnutls_ocsp_resp_get_responder_raw_id(gnutls_ocsp_resp_const_t resp,
unsigned type,
gnutls_datum_t * raw);
there she is. three args, one int, zero drama. π
π¦ ARGUMENTS π¦
gnutls_ocsp_resp_const_t respβ should contain agnutls_ocsp_resp_ttype. like, this is the OCSP response you're interrogating bestie, hand her over π«Άunsigned typeβ should beGNUTLS_OCSP_RESP_ID_KEYorGNUTLS_OCSP_RESP_ID_DN. those are literally the only two moods, pick one β¨gnutls_datum_t * rawβ a newly allocated buffer with the raw ID. brand new, fresh out the allocator, no cap π
π DESCRIPTION π
so what does this function actually do? it will extract the raw key (or DN) ID of the Basic OCSP Response and drop it into the buffer you provided. main character extraction behavior, honestly π
β οΈ heads up bestie: if the responder ID is not a key ID, then this function will return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE. it's giving "sorry girl, wrong kind of ID, nothing here for you" π
and now the part everyone forgets and then leaks memory about β the caller needs to deallocate memory by calling gnutls_free() on dn ->data. yes, you, the caller, are responsible. it's not gonna free itself. don't leave her hanging π
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error code is returned. zero equals slay, negative equals not slay, that's the whole vibe check π
π REPORTING BUGS π
found a bug? not the vibe, but okay, tell the devs:
- 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. so like, share it, remix it, print it on a tote bag, just keep the receipts bestie π
π§ 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/
go read it, it's the extended universe lore fr fr πβ¨
and that's the whole page, periodt. this one came from gnutls 3.8.13 β shoutout to the gnutls girlies who keep the docs cute and the APIs honest. mwah, go free your buffers ππ¦πΈ
π¦ 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