gnutls_pk_get_oid(3)

✨ gnutls_pk_get_oid β€” the "what's your OID bestie" function ✨

okay so this is a page from the gnutls manual, and it's about one lil function that's genuinely so useful. sit down, grab a strawberry πŸ“, let's go.


🌸 NAME 🌸

gnutls_pk_get_oid β€” API function. that's it, that's the name, no notes πŸ’…


πŸ’– SYNOPSIS πŸ’–

#include <gnutls/gnutls.h>

const char * gnutls_pk_get_oid(gnutls_pk_algorithm_t algorithm);

like. one include. one function. so clean, so demure πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_pk_algorithm_t algorithm β€” bestie this is a public key algorithm. that's the whole vibe. you hand it a public key algorithm and it does the thing.

✨ DESCRIPTION ✨

so what does it actually do? it converts a gnutls_pk_algorithm_t value into its object identifier string. that's the glow-up: you give it the enum, it gives you back the OID as a string. literally the translator of the crypto world 🧚


πŸ‘‘ RETURNS πŸ‘‘

it returns a pointer to a string that contains the object identifier of the specified public key algorithm, or NULL. and yeah, NULL is a real possibility, so maybe check for it before you go around dereferencing things like a menace πŸ™ˆ


⭐ SINCE ⭐

3.4.3 β€” been iconic since 3.4.3, no cap.


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not me finding bugs but okay. report bugs to <bugs@gnutls.org>.

home page is right here: https://www.gnutls.org β€” go be nosy, it's fine 🫢


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, you can 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/

fr fr the whole page is basically: give enum, get OID string, maybe get NULL, go read the Texinfo manual if you want more. main character energy from a single function, honestly πŸ”₯

and that's a wrap bestie πŸ’œ this was gnutls_pk_get_oid(3) from the gnutls 3.8.13 era of the manual β€” same energy, same facts, all vibes preserved. slay, stay safe, and always check for NULL πŸ’…πŸŒŸ

πŸ“¦ where this page comes from