gnutls_privkey_import_pkcs11_url(3)

✨ gnutls_privkey_import_pkcs11_url ✨

okay bestie, welcome to the gnutls manual, and today's main character is gnutls_privkey_import_pkcs11_url β€” an API function, no cap. sit with me, this one's actually so chill πŸ’–


🌸 NAME 🌸

gnutls_privkey_import_pkcs11_url β€” literally an API function, that's the whole vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/abstract.h>

int gnutls_privkey_import_pkcs11_url(gnutls_privkey_t key, const char *
url);

like yes, that's the whole signature, it's giving minimal and iconic πŸ’…


πŸ“ ARGUMENTS πŸ“

  • gnutls_privkey_t key β€” a key of type gnutls_pubkey_t (that's what the docs say, fr fr, I'm just the messenger πŸ™ˆ)
  • const char * url β€” a PKCS 11 url. that's it. that's the whole argument. iconic.

πŸ’œ DESCRIPTION πŸ’œ

so this function will import a PKCS 11 private key into a gnutls_privkey_t type. that's the entire job. it takes your url, it goes and gets the key, it drops it into your gnutls_privkey_t. slay ✨


πŸ‘‘ RETURNS πŸ‘‘

on success, GNUTLS_E_SUCCESS (0) is returned β€” the little zero that means everything worked, we love her 🫢

otherwise you get a negative error value. so if you see a negative number, that's the function being like "girl, no πŸ’€"


⭐ SINCE ⭐

3.1.0 β€” she's been around since 3.1.0, a true veteran, highkey timeless 🌈


🧚 REPORTING BUGS 🧚

found something cursed? report bugs to <bugs@gnutls.org>.

home page: https://www.gnutls.org

bestie if you found a bug, please actually tell them, they wanna know πŸ’–

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. so like, go off, share it, just 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 whole page, bestie β€” from the gnutls manual, version 3.8.13, page gnutls_privkey_import_pkcs11_url(3). go import some keys, you've got this πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from