GNUTLS_PKCS7_PRINT_SIGNATURE_INFO(3)
π gnutls_pkcs7_print_signature_info(3) π
okay bestie, so this one lives in the gnutls manual (yes, that gnutls) and it's literally just "make this PKCS7 signature info look cute for a human to read". we love a glow-up function. β¨
πΈ NAME πΈ
gnutls_pkcs7_print_signature_info β an API function that pretty-prints your PKCS7 signature info π
π¦ SYNOPSIS π¦
#include <gnutls/pkcs7.h>
int gnutls_pkcs7_print_signature_info(gnutls_pkcs7_signature_info_st *
info, gnutls_certificate_print_formats_t format, gnutls_datum_t * out);
like yes, that's the whole vibe. three args, one int. slay. π
β¨ ARGUMENTS β¨
gnutls_pkcs7_signature_info_st * infoβ the PKCS7 signature info struct you want printed, bestie. this is the main character of the operation. πgnutls_certificate_print_formats_t formatβ tells the function which format to use. pick your aesthetic. πgnutls_datum_t * outβ a newly allocated datum holding a null-terminated string. it's fresh, it's new, it's yours. π«Ά
π DESCRIPTION π
so basically this function will pretty print a PKCS 7 signature info structure, and it's suitable for display to a human β meaning it's not giving raw bytes energy, it's giving "here's something your eyeballs can actually read" energy. π
rn the supported formats are GNUTLS_CRT_PRINT_FULL and GNUTLS_CRT_PRINT_COMPACT. that's it. those two. no cap. π₯
okay important bestie: the outputoutneeds to be deallocated usinggnutls_free(). do not forget this. leaking memory is not the vibe. π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned π β otherwise you get a negative error value, which is the function's way of saying "no β€οΈ".
π§ SINCE π§
3.6.14 β she's been here since 3.6.14, iconic behavior honestly.
π REPORTING BUGS π
found a bug? don't be shy, report it to <bugs@gnutls.org>.
home page: https://www.gnutls.org
π 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. (translation: go off, 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/
and that's the whole page bestie, no crumbs left behind π
this was brought to you by gnutls 3.8.13 β gnutls_pkcs7_print_signature_info(3), signing off π«Άβ¨
π¦ 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