gnutls_pkcs11_privkey_cpy(3)
π gnutls_pkcs11_privkey_cpy(3) π
okay bestie, sit down, hydrate, and let me tell you about this lil function from the gnutls manual β gnutls_pkcs11_privkey_cpy, the copy-paste of the PKCS#11 private key world π
β¨ NAME β¨
gnutls_pkcs11_privkey_cpy β it's an API function, periodt π
πΈ SYNOPSIS πΈ
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_privkey_cpy(gnutls_pkcs11_privkey_t dst,
gnutls_pkcs11_privkey_t src);
π¦ ARGUMENTS π¦
gnutls_pkcs11_privkey_t dstβ the destination key, and girl, it should be initialized first. don't come in here with an uninitializeddst, that's not the vibe πgnutls_pkcs11_privkey_t srcβ the source key. the original. the blueprint. the main character π
π« DESCRIPTION π«
So what does it actually do? This function will copy a private key from source to destination key. That's it, that's the whole thing, and honestly? iconic.
β οΈ heads up: the destination has to be initialized. No exceptions, no shortcuts, no "it'll probably be fine" β it will not be fine. Initialize that dst first π
π₯ RETURNS π₯
On success, GNUTLS_E_SUCCESS (0) is returned. Otherwise you get a negative error value β which is the function's way of saying "not me being upset with you rn π". Check it. Always check it.
β SINCE β
3.4.0 β she's been around a minute, she's a legacy icon π«Ά
π REPORTING BUGS π
Found something sus? 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.
π 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, no cap π
β¨ this was the gnutls manual, version 3.8.13, page gnutls_pkcs11_privkey_cpy(3) β go forth, copy your keys, initialize your destinations, and slay πππ¦
π¦ 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