gnutls_x509_crt_import_pkcs11(3)

✨ gnutls_x509_crt_import_pkcs11(3) ✨

okay bestie, sit down, hydrate, because we're reading a gnutls man page together πŸ’– this one lives in the gnutls manual, section 3, and it's about yeeting a PKCS 11 certificate into a gnutls_x509_crt_t like it's nothing. no cap.


🌸 NAME 🌸

gnutls_x509_crt_import_pkcs11 β€” literally an API function, that's the whole name, that's the whole vibe πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/pkcs11.h>

int gnutls_x509_crt_import_pkcs11(gnutls_x509_crt_t crt,
gnutls_pkcs11_obj_t pkcs11_crt);

like, that's it. that's the incantation. copy it exactly, don't freestyle it πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_crt_t crt β€” a certificate of type gnutls_x509_crt_t. yes the type is the name, we love a self-explanatory moment ✨
  • gnutls_pkcs11_obj_t pkcs11_crt β€” a PKCS 11 object that contains a certificate. it's the lil container holding your cert, the main character of this operation 🫢

πŸ’œ DESCRIPTION πŸ’œ

so the way that this works is: this function will import a PKCS 11 certificate into a gnutls_x509_crt_t structure. that's the tea. that's the whole plot. you hand it the cert object, it becomes a gnutls_x509_crt_t, slay 🧚


⭐ RETURNS ⭐

on success, GNUTLS_E_SUCCESS (0) is returned πŸ’– otherwise you get a negative error value, which is giving "something went wrong bestie, go check your inputs" 😭


🌈 SINCE 🌈

2.12.0 β€” an icon, an elder, been here since forever and still serving πŸ‘‘


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? not me being the one to tell you, but like, report it:


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, 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 page, bestie!! πŸŽ€ this lil masterpiece came to you from the gnutls manual, version 3.8.13, and honestly? iconic. go import some certificates, you absolute legend πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from