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:


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