gnutls_ocsp_resp_print(3)

πŸ’– gnutls_ocsp_resp_print β€” the API function πŸ’–

okay so bestie, this one lives in the gnutls manual, and it's literally about making an OCSP response look cute enough for a human to read. no cap. πŸŽ€


✨ SYNOPSIS ✨

#include <gnutls/ocsp.h>

int gnutls_ocsp_resp_print(gnutls_ocsp_resp_const_t resp,
                           gnutls_ocsp_print_formats_t format,
                           gnutls_datum_t * out);

🌸 ARGUMENTS 🌸

  • gnutls_ocsp_resp_const_t resp β€” the actual data you wanna print, queen. that's the stuff.
  • gnutls_ocsp_print_formats_t format β€” tells it which format to use, iykyk.
  • gnutls_datum_t * out β€” a newly allocated datum holding a string that's (0) terminated. brand new, fresh out the box. ✨

πŸ’… DESCRIPTION πŸ’…

So this function will pretty print an OCSP response, and it's giving display to a human. like, actually readable. the vibe check passes. πŸ¦‹

And if the format is GNUTLS_OCSP_PRINT_FULL? oh honey, then all fields of the response get output, spread across multiple lines. every single one. not me gatekeeping a single field. πŸ’€

real talk though: the out->data you get back needs to be deallocated using gnutls_free(). do not forget this part bestie, that's a leak waiting to happen 😭

⭐ RETURNS ⭐

On success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value. slay when it's zero, sad girl hours when it's negative. 🫢


πŸ› REPORTING BUGS πŸ›

Found a bug? spill it to <bugs@gnutls.org>.

Home page: https://www.gnutls.org β€” go look, it's iconic. πŸ‘‘


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. periodt. πŸ’–


πŸ”₯ 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/

and that's the whole page, bestie ✨ this was gnutls version 3.8.13, dated with all the love, and yeah β€” the header said gnutls_ocsp_resp_print(3) and the footer said the same thing, so we're full circle. main character energy from start to finish. πŸ’…πŸŒˆπŸŽ€

πŸ“¦ where this page comes from