gnutls_x509_crt_get_pk_gost_raw(3)
β¨ gnutls_x509_crt_get_pk_gost_raw(3) β¨
okay bestie, so this one lives in the gnutls manual β yes, the whole gnutls manual, we're in the big leagues now π
β and it's literally the girl whose whole job is pulling a GOST public key's parameters out of a certificate. Let's get into it π«Ά
πΈ NAME πΈ
gnutls_x509_crt_get_pk_gost_raw β an API function. that's it, that's the name, no notes π
π¦ SYNOPSIS π¦
#include <gnutls/x509.h>
int gnutls_x509_crt_get_pk_gost_raw(gnutls_x509_crt_t crt,
gnutls_ecc_curve_t * curve, gnutls_digest_algorithm_t * digest,
gnutls_gost_paramset_t * paramset, gnutls_datum_t * x, gnutls_datum_t *
y);
look at her, six args deep and serving β¨ (and yes, include that header, she needs it)
π ARGUMENTS π
gnutls_x509_crt_t crtβ this one holds the certificate. the girl in question, the cert we're snooping through πgnutls_ecc_curve_t * curveβ this pointer is gonna hold the curve when we're done with it πgnutls_digest_algorithm_t * digestβ and this one will hold the digest πgnutls_gost_paramset_t * paramsetβ this one's storing the GOST parameter set ID, so like, the very specific GOST-flavoured settings πgnutls_datum_t * xβ will hold the x-coordinate, standard πgnutls_datum_t * yβ will hold the y-coordinate, matching, iconic β¨
π DESCRIPTION π
so basically this function will export the GOST public key's parameters that it finds chillin' inside the given certificate π₯
and here's the important bit, no cap: the new parameters get allocated using gnutls_malloc(), and they get stored in the appropriate datum. so like, the memory is hers now, she allocated it, you don't just free it with whatever, you use the gnutls way, iykyk π§
β RETURNS β
GNUTLS_E_SUCCESS on success π β otherwise a negative error code π (gnutls really said "negative vibes = something went wrong")
π°οΈ SINCE π°οΈ
3.6.3 β she's been around a minute, a seasoned queen π
π REPORTING BUGS π
found a bug? don't be shy, tell the gnutls girlies directly:
- 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. (so like, use it, share it, just keep the receipt, 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/
friendly reminder bestie: this is the whole man page, we didn't skip a single option, arg, or footnote. every detail is here, just wearing a cuter outfit π
and that's the tea π΅ β this page came to you straight from the gnutls manual, version 3.8.13, under the title gnutls_x509_crt_get_pk_gost_raw(3). mwah, take care of her πβ¨
π¦ 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