GNUTLS_X509_PRIVKEY_IMPORT_DSA_RAW(3)
β¨ NAME β¨
gnutls_x509_privkey_import_dsa_raw β bestie, this is the API function that takes raw DSA numbers and turns them into a real, native GnuTLS private key π
(this page lives in the gnutls manual, section 3, iykyk)
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_privkey_import_dsa_raw(gnutls_x509_privkey_t key, const
gnutls_datum_t * p, const gnutls_datum_t * q, const gnutls_datum_t * g,
const gnutls_datum_t * y, const gnutls_datum_t * x);
π ARGUMENTS π
gnutls_x509_privkey_t keyβ this is the lil container where the parsed key is gonna live. the data to store the parsed key goes here π«Άconst gnutls_datum_t * pβ holds thepπconst gnutls_datum_t * qβ holds theqπconst gnutls_datum_t * gβ holds thegπconst gnutls_datum_t * yβ holds they, and okay important: this one is optional πconst gnutls_datum_t * xβ holds thexπ
π DESCRIPTION π
okay so here's the vibe: this function takes the DSA raw parameters you hand it and converts them into the native gnutls_x509_privkey_t format β¨. like, it's giving glow-up, raw numbers to fully-formed key.
the output gets stored in key π. that's the whole thing. no cap.
β RETURNS β
on success you get GNUTLS_E_SUCCESS (0) back and you can go be iconic π. otherwise, bestie, it's a negative error value π β check it, always.
π¦ REPORTING BUGS π¦
found a bug? not the vibe. report it 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 π. (yes, that means you can share it, just keep the receipts, periodt.)
π 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. go forth and import those DSA parameters responsibly. main character energy only. π
β written by the gnutls girlies, version 3.8.13, gnutls_x509_pri..._import_dsa_raw(3) πβ¨π«Ά
π¦ 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