gnutls_oid_to_digest(3)

✨ gnutls_oid_to_digest ✨

ok bestie so this is a page from the gnutls manual β€” the gnutls_oid_to_digest(3) one πŸ’… it's a lil function that takes an OID (yes, as a string, we'll get there) and tells you which digest algorithm it is. that's the whole vibe. let's go πŸ¦‹


🌸 NAME 🌸

gnutls_oid_to_digest β€” literally just an API function, no cap 🫢


πŸ’– SYNOPSIS πŸ’–

#include <gnutls/gnutls.h>

gnutls_digest_algorithm_t gnutls_oid_to_digest(const char * oid);

like. that's it. that's the function. gorgeous 😌


πŸŽ€ ARGUMENTS πŸŽ€

  • const char * oid β€” it's an object identifier. that's it, that's the arg. you hand it a string that's an OID and it does its lil thing ✨

πŸ‘‘ DESCRIPTION πŸ‘‘

so the way this works is: you give it a textual object identifier (like, the OID written out as text), and it converts that into a gnutls_digest_algorithm_t value for you. that's the conversion. that's the whole plot πŸ“

ngl it's giving "tiny translator between two worlds" and honestly? iconic. πŸ’œ


🌈 RETURNS 🌈

it hands back a gnutls_digest_algorithm_t id β€” specifically the id of the digest algorithm you asked about πŸ‘‘

⚠️ and if it can't figure it out? you get GNUTLS_DIG_UNKNOWN on failure. that's the "bestie i have no idea what this is" answer πŸ™ˆ

⭐ SINCE ⭐

3.4.3 β€” so it's been around a minute, it's not new new. respect the elders πŸ’…


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not the vibe, but okay, report it, they wanna know:


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

and the license part, fr fr: 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. slay, that's a generous license and we love that for us 🫢✨


πŸ”₯ 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, go visit:

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

that's your link, go off πŸ’–


ok that's the whole page, mwah 😘 this was the gnutls_oid_to_digest(3) manpage from gnutls version 3.8.13 β€” stay hydrated, read your manpages, and remember: GNUTLS_DIG_UNKNOWN is a valid answer, not a personal failure πŸŒΈπŸ’œ

πŸ“¦ where this page comes from