gnutls_pkcs7_set_crt(3)
π gnutls_pkcs7_set_crt β the gnutls manual, bestie edition π
okay so real talk, this page lives in the gnutls manual and it's literally about adding a certificate to a PKCS7 set. tiny function, huge main character energy. let's get into it π«Ά
β¨ NAME β¨
gnutls_pkcs7_set_crt β API function π
β¨ SYNOPSIS β¨
#include <gnutls/pkcs7.h>
int gnutls_pkcs7_set_crt(gnutls_pkcs7_t pkcs7, gnutls_x509_crt_t crt);
β¨ ARGUMENTS β¨
gnutls_pkcs7_t pkcs7β bestie, this is the pkcs7 type. the whole vibe. the container we're stuffing things into πgnutls_x509_crt_t crtβ the certificate that's getting copied. yes, copied, keep reading π
β¨ DESCRIPTION β¨
so this function adds a parsed certificate to the PKCS7 or RFC2630 certificate set. that's it, that's the job. slay β¨
and the tea? it's a wrapper function over gnutls_pkcs7_set_crt_raw(). so like, if you want the raw unparsed version, that's where you go. iykyk π§
β¨ RETURNS β¨
when it goes well, you get GNUTLS_E_SUCCESS (which is 0, iconic). otherwise you get a negative error value and honestly π we've all been there.
β¨ REPORTING BUGS β¨
found a bug? not the vibe. tell the devs:
- Report bugs 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. (fr fr, no cap, that's the actual license text π)
β¨ 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, go visit:
https://www.gnutls.org/manual/
ngl bestie, that's the whole page. go forth and add those certificates π
πΈ mwah, that's a wrap! this was pulled straight from the gnutls manual, version 3.8.13, and it's the gnutls_pkcs7_set_crt(3) page. see you in the next one, love u, bye πβ¨π
π¦ 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