gnutls_x509_privkey_cpy(3)
π gnutls_x509_privkey_cpy(3) π
okay bestie, welcome to the gnutls manual page for gnutls_x509_privkey_cpy, and yes she is exactly as iconic as she sounds. this is the one that lets you clone a private key, no cap. let's get into it π«Ά
β¨ NAME β¨
gnutls_x509_privkey_cpy β API function. that's the whole name. short, sweet, main character energy π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_privkey_cpy(gnutls_x509_privkey_t dst,
gnutls_x509_privkey_t src);
like. the way that signature just sits there. beautiful. π¦
π ARGUMENTS π
gnutls_x509_privkey_t dstβ the destination key, and heads up bestie, it should be initialized first. she needs to exist before you go filling her up, fr fr.gnutls_x509_privkey_t srcβ the source key. the original. the blueprint. the one we're copying from π
π DESCRIPTION π
so here's the tea: this function copies a private key from the source over to the destination key. that's it. that's the whole job and she does it flawlessly.
β οΈ real talk though β the destination has to be initialized. don't be out here passing an uninitialized key, that's not the vibe. β
β RETURNS β
on success you get GNUTLS_E_SUCCESS (which is 0, iconic) returned to you. literally the best feeling.
otherwise? you get a negative error value. π so like, always check your return value babes, it's giving self-care.
π REPORTING BUGS π
found a bug? don't gatekeep, report it to <bugs@gnutls.org>. π«Ά
home page is right here: https://www.gnutls.org β go look, it's cute.
π 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. slay, honestly. free as in freedom AND free as in no drama. π
π 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 full thing when you're done here π§
and that's the whole page bestie!! this one shipped with gnutls 3.8.13, so if you're quoting her in the group chat, cite her right π mwah, go initialize your destination key and copy away. periodt. β¨ππ¦π
π¦ 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