gnutls_pubkey_import_pkcs11(3)
π gnutls_pubkey_import_pkcs11(3) β the gnutls manual, bestie edition π
okay so picture this: you're deep in the gnutls manual (yes, that gnutls) and you've stumbled onto gnutls_pubkey_import_pkcs11. she's a little API function, she's iconic, and she's about to hand you a public key like it's a friendship bracelet. let's get into it π
β¨ NAME β¨
gnutls_pubkey_import_pkcs11 β API function. that's it, that's the name, she's not doing a whole monologue π
πΈ SYNOPSIS πΈ
#include <gnutls/abstract.h>
int gnutls_pubkey_import_pkcs11(gnutls_pubkey_t key, gnutls_pkcs11_obj_t
obj, unsigned int flags);
look at her. three little args, one big job. slay π¦
π«Ά ARGUMENTS π«Ά
gnutls_pubkey_t keyβ the public key. this is the main character, the one we're filling in πgnutls_pkcs11_obj_t objβ the parameters that are gonna get imported. the source material, the inspo, the muse β¨unsigned int flagsβ should be zero. that's the whole assignment, bestie. zero. nothing else. don't be creative here π«
π DESCRIPTION π
so what does she do? she imports a public key from a pkcs11 key. yep, that's the vibe.
this function will import the given public key into the abstract gnutls_pubkey_t type. so you've got a pkcs11 key over there living her life, and you're like "hey, come be an abstract gnutls_pubkey_t with me," and she does. lowkey iconic behaviour ngl π₯
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value, which is the universe's way of saying "not today, babe" π
π SINCE π
2.12.0 β she's been around since then, so she's basically a legacy queen at this point π
π REPORTING BUGS π
found a bug? don't just screenshot it and put it on your story β actually report it:
- report bugs to <bugs@gnutls.org>
- home page: https://www.gnutls.org
π 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. fr fr, that's the deal π«‘
π 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/
iykyk β go read the whole thing, it's giving scholarly πβ¨
and that's the whole page, bestie. this was gnutls_pubkey_import_pkcs11(3) from the gnutls manual, version 3.8.13. stay hydrated, pass your flags as zero, and go import something beautiful πππ
π¦ 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