gnutls_x509_crq_print(3)

πŸ’– gnutls_x509_crq_print(3) πŸ’–

okay bestie, so this one lives in the gnutls manual, and it's genuinely one of the cutest little functions in the whole x509 situation β€” it takes a certificate request and makes it pretty for human eyeballs. let's get into it πŸŽ€


✨ NAME ✨

gnutls_x509_crq_print β€” API function πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crq_print(gnutls_x509_crq_t crq,
gnutls_certificate_print_formats_t format, gnutls_datum_t * out);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_x509_crq_t crq β€” the data to be printed, aka the whole reason we're here πŸ’œ
  • gnutls_certificate_print_formats_t format β€” tells us which format to use, so like, pick your vibe ✨
  • gnutls_datum_t * out β€” a newly allocated datum holding a null terminated string. it's giving "here's your output, go look at it" 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

so the way this works: this function will pretty print a certificate request, suitable for display to a human. that's it, that's the whole serve. it takes that crunchy machine-readable blob and turns it into something your eyes can actually read 😭✨

⚠️ okay but listen β€” the output out needs to be deallocated using gnutls_free(). do NOT forget this. leaking memory is not the main character energy we're going for, bestie πŸ’€

⭐ RETURNS ⭐

On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so if you get a 0, slay. if you get something negative, that's your sign to go read the error πŸ‘€


🌈 SINCE 🌈

2.8.0 β€” she's been iconic for a minute, no cap πŸ’…


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found something cursed? report bugs to <bugs@gnutls.org>. Home page: https://www.gnutls.org β€” go say hi 🫢


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. (yes, you can copy 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/

that's the whole lore drop, go read it iykyk πŸ“š


and that's a wrap!! this page came to you from the gnutls manual, version 3.8.13, page gnutls_x509_crq_print(3) β€” mwah, go print some cert requests, bestie πŸ’‹πŸ’œπŸ¦‹

πŸ“¦ where this page comes from