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:


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