gnutls_ocsp_req_print(3)

πŸ’– NAME πŸ’–

gnutls_ocsp_req_print β€” an API function, bestie, and it's here to make your OCSP request look cute for human eyeballs ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/ocsp.h>

int gnutls_ocsp_req_print(gnutls_ocsp_req_const_t req,
gnutls_ocsp_print_formats_t format, gnutls_datum_t * out);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_ocsp_req_const_t req β€” the data to be printed, aka the whole point of this function, the main character 🫢
  • gnutls_ocsp_print_formats_t format β€” tells it which format to use, like picking an outfit but for output 🌸
  • gnutls_datum_t * out β€” a newly allocated datum holding a (0) terminated string. Fresh out the oven, literally ✨

πŸ’… DESCRIPTION πŸ’…

okay so. This function will pretty print an OCSP request, and it's suitable for display to a human β€” that's us, we're the human 🫢

If the format is GNUTLS_OCSP_PRINT_FULL then all fields of the request will be output, on multiple lines. No crumbs left behind, it's giving thorough πŸ’€βœ¨

not me reminding you again: the output out->data needs to be deallocated using gnutls_free(). Free your girl. Don't leak, it's not the vibe 😭

⭐ RETURNS ⭐

On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. Zero means slay, negative means we're crying in the group chat πŸ™ˆ


🌈 REPORTING BUGS 🌈

Found a bug? Spill 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. Iconic behaviour, honestly, 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, no cap πŸ’– this one's from the gnutls manual, version 3.8.13, and it's the gnutls_ocsp_req_print(3) girlie herself. mwah, go print some requests πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from