gnutls_strerror_name(3)

✨ gnutls_strerror_name ✨

okay bestie, so this is a page from the gnutls manual β€” yes, that gnutls, the GNU Transport Layer Security library, and this little function is genuinely one of my faves because it's so unbothered. πŸ’–


🌸 NAME 🌸

gnutls_strerror_name β€” literally an API function, that's it, that's the whole job description πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

const char * gnutls_strerror_name(int error);

πŸ’œ ARGUMENTS πŸ’œ

  • int error β€” this is an error returned by a gnutls function. like, one of those error codes gnutls hands you when something goes sideways. you're passing it in here so we can find out its whole name. πŸ™ˆ

⭐ DESCRIPTION ⭐

so what it does is return the GnuTLS error code define as a string. that's the vibe. ✨

for example, gnutls_strerror_name (GNUTLS_E_DH_PRIME_UNACCEPTABLE) will return the string "GNUTLS_E_DH_PRIME_UNACCEPTABLE".

see how it just hands you back the name?? like it looked at the number and was like "oh bestie, I know exactly who you are" πŸ’… iconic behaviour fr fr.


πŸ’– RETURNS πŸ’–

A string corresponding to the symbol name of the error code. 🫢


🌈 SINCE 🌈

2.6.0 β€” she's been serving since 2.6.0, no cap. πŸ‘‘


😭 REPORTING BUGS 😭

found a bug?? not me hoping you never do, but if you do:


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. πŸ’– (yes you can share it, just keep the receipts, 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/


and that's the whole page bestie, go forth and name your error codes πŸ’…βœ¨

gnutls 3.8.13 β€” mwah, written by the gnutls girlies, and this manual page is gnutls_strerror_name(3), so if you ever forget, iykyk πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from