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 outputoutneeds to be deallocated usinggnutls_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 π
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
- 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