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, your pkcs7 situation πŸ‘œ
  • 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 Β© 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