gnutls_pkcs7_set_crt_raw(3)
β¨ gnutls_pkcs7_set_crt_raw β¨
okay bestie, sit down, hydrate, and let me tell you about this lil function from the gnutls manual (yes, that gnutls, the TLS icon itself π
). This one's called gnutls_pkcs7_set_crt_raw and it's lowkey the plug for shoving a certificate into a PKCS7 set. no cap.
πΈ NAME πΈ
gnutls_pkcs7_set_crt_raw β API function, and it's giving "add one certificate to the pile" energy π
π¦ SYNOPSIS π¦
#include <gnutls/pkcs7.h>
int gnutls_pkcs7_set_crt_raw(gnutls_pkcs7_t pkcs7, const gnutls_datum_t
* crt);
π ARGUMENTS π
gnutls_pkcs7_t pkcs7β the pkcs7 type. that's your little container, your handbag, yourpkcs7situation πconst gnutls_datum_t * crtβ the DER encoded certificate to be added. raw DER, not PEM, not vibes. the actual bytes, bestie π§
π DESCRIPTION π
so what does it do. literally what it says on the tin: this function will add a certificate to the PKCS7 or RFC2630 certificate set. that's it. that's the whole personality. you hand it a pkcs7 and a DER-encoded cert, and it goes in the set. obsessed with the simplicity fr fr π
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so if you get a 0 back, slay, it worked. anything negative? that's a no from gnutls, go read your error codes π
π REPORTING BUGS π
Report bugs to <bugs@gnutls.org>.
Home page: https://www.gnutls.org
(if something's broken, tell the devs, they're nice, they want to know, i promise π«Ά)
π 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. (iconic behaviour, truly, respecting the license is the bare minimum and we love that for them β¨)
π₯ 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/
go look, it's there, iykyk π
and that's the whole page, bestie π this was gnutls 3.8.13, manual page gnutls_pkcs7_set_crt_raw(3), brought to you by the gnutls girlies. now go add that certificate. main character energy only. periodt πβ¨
π¦ 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