gnutls_ocsp_resp_export2(3)

✨ gnutls_ocsp_resp_export2 ✨

okay bestie, welcome to the gnutls manual page for gnutls_ocsp_resp_export2(3) πŸŽ€ β€” yes, the (3) means it lives in the library section, and yes, it's as cute as it sounds. this one's all about taking your OCSP response and getting it out of the library so you can do stuff with it. slay. πŸ’…


πŸ’– NAME πŸ’–

gnutls_ocsp_resp_export2 β€” it's an API function 🌈 (that's literally what the manpage calls it, no notes)


🌸 SYNOPSIS 🌸

#include <gnutls/ocsp.h>

int gnutls_ocsp_resp_export2(gnutls_ocsp_resp_const_t resp,
gnutls_datum_t * data, gnutls_x509_crt_fmt_t fmt);

like… look at her. three little params, one big job. iconic. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_ocsp_resp_const_t resp β€” this is the OCSP response you're holding, bestie. it's the main character here.
  • gnutls_datum_t * data β€” a newly allocated buffer that's gonna hold your DER- or PEM-encoded OCSP response. brand new, fresh out the box. ✨
  • gnutls_x509_crt_fmt_t fmt β€” pick your vibe: DER or PEM. that's it, that's the choice. πŸ™ˆ

🌷 DESCRIPTION 🌷

so basically? this function will export the OCSP response to DER or PEM format. that's the whole assignment. it ate and left no crumbs. πŸ’–


⭐ RETURNS ⭐

if things go sideways, you get a negative error code back. 😭 but if it all works out? you get 0 on success. zero means slay. 🫢


πŸŽ€ SINCE πŸŽ€

3.6.3 β€” she's been around a minute, lowkey a legend. ⭐


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not me gatekeeping β€” go tell the devs:


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: use it, share it, 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/


heads up fr fr: this whole thing is from the gnutls manual, version 3.8.13, and the page itself is gnutls_ocsp_resp_export2(3). go off, export that response, and drink some water. πŸ’œβœ¨ bye bestie!! πŸ¦‹πŸŒΈ
πŸ“¦ where this page comes from