gnutls_x509_crt_get_pk_ecc_raw(3)
β¨ gnutls_x509_crt_get_pk_ecc_raw(3) β¨
okay bestie so this is a page from the gnutls manual, and today's main character is gnutls_x509_crt_get_pk_ecc_raw π it's an API function, and it's about pulling the elliptic-curve public key parameters out of a certificate. yes, that kind of certificate. let's go π¦
πΈ NAME πΈ
gnutls_x509_crt_get_pk_ecc_raw β literally just, API function π
no cap.
π SYNOPSIS π
#include <gnutls/x509.h>
int gnutls_x509_crt_get_pk_ecc_raw(gnutls_x509_crt_t crt,
gnutls_ecc_curve_t * curve, gnutls_datum_t * x, gnutls_datum_t * y);
like. look at her. four arguments, one return value, zero drama π
π ARGUMENTS π
gnutls_x509_crt_t crtβ holds the certificate. she's the one carrying the whole thing, respect her πgnutls_ecc_curve_t * curveβ will hold the curve. yep, she gets filled in for you β¨gnutls_datum_t * xβ will hold the x-coordinate πgnutls_datum_t * yβ will hold the y-coordinate π
π§ DESCRIPTION π§
so this function will export the ECC public key's parameters found in the given certificate. that's it, that's the vibe.
the new parameters will be allocated using gnutls_malloc() and will be stored in the appropriate datum. so like, you own that memory now β that's a you problem, bestie, don't forget to free it π
and here's the lil plot twist: in EdDSA curves theyparameter will beNULLand the other parameters will be in the native format for the curve. not me finding that out the hard way π it's giving "the rules are different here" and honestly? iconic.
β RETURNS β
GNUTLS_E_SUCCESS on success β slay π
otherwise a negative error code, which is the universe's way of saying "no <3" π
π¦ SINCE π¦
3.4.1 β she's been around, she's not new here, lowkey a legend β
π€ REPORTING BUGS π€
found a bug? not the cute kind? report it, fr fr:
- 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, go off, share it, just keep the receipts π«Ά
π 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 π this was gnutls 3.8.13 energy, mwah, go read your certificate's curves, stay hydrated, and remember: free your datums πβ¨
π¦ 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