gnutls_oid_to_ecc_curve(3)

✨ gnutls_oid_to_ecc_curve ✨

okay bestie, welcome to the gnutls manual, page three of gnutls_oid_to_ecc_curve(3). this one's a lil cutie β€” a whole API function whose entire job is translating OIDs into curve vibes. let's get into it πŸ’…


NAME

gnutls_oid_to_ecc_curve β€” it's an API function, periodt.


SYNOPSIS

so first you gotta bring in the header, obviously:

#include <gnutls/gnutls.h>

and here's the signature, look at her:

gnutls_ecc_curve_t gnutls_oid_to_ecc_curve(const char * oid);

that's it. that's the whole function. so simple, so iconic.


ARGUMENTS

  • const char * oid β€” this is a curve's OID. like, the OID string for the curve you're asking about. hand it over and let her cook πŸŽ€

RETURNS

she gives you back a gnutls_ecc_curve_t value β€” the one that corresponds to the OID you passed in. matching, slaying, the whole thing πŸ’–

but if something's off? if the OID doesn't line up with anything? you get GNUTLS_ECC_CURVE_INVALID back. that's the error case, no cap. don't ignore her, she's telling you something 😭

SINCE</since>

this one's been around since 3.4.3. an elder. a legend. she was doing this before it was cool ✨


REPORTING BUGS

found a bug? don't suffer in silence bestie, tell the devs:

Report bugs to <bugs@gnutls.org>.

Home page: https://www.gnutls.org


Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.

and the legal tea: copying and distribution of this file β€” with or without modification β€” is permitted in any medium without royalty, as long as the copyright notice and this notice are preserved. so go wild, just keep the receipts 🫢


SEE ALSO

the full documentation for gnutls lives in a Texinfo manual. and if the /usr/share/doc/gnutls/ directory isn't giving what it's supposed to give (aka it doesn't have the HTML form), then just go here:

https://www.gnutls.org/manual/


ngl that's the whole page. short, sweet, and lowkey perfect for what it does 🌸

and that's a wrap on the gnutls 3.8.13 manual, page gnutls_oid_to_ecc_curve(3). mwah, take care of her πŸ’œπŸ¦‹

πŸ“¦ where this page comes from