gnutls_protocol_get_id(3)

πŸ’– gnutls_protocol_get_id πŸ’–

okay bestie, welcome to the gnutls manual, specifically the page for gnutls_protocol_get_id πŸŽ€ it's a lil API function and it's honestly so useful, come sit with me.


✨ NAME ✨

gnutls_protocol_get_id β€” API function πŸ¦‹


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

gnutls_protocol_t gnutls_protocol_get_id(const char * name);

like. look at her. one argument, one return type, no drama πŸ’…


🫢 ARGUMENTS 🫢

  • const char * name β€” this is a protocol name, bestie. just a string, that's it, that's the whole vibe 🌈

πŸ‘‘ DESCRIPTION πŸ‘‘

so what does she DO? she takes that name and gets you the id for it. and the way she does it β€” the names are compared in a case insensitive way. so "TLS1.2", "tls1.2", "Tls1.2"? all the same girl, all matching, no cap πŸ’…βœ¨


πŸ“ RETURNS πŸ“

she hands you back an id of the specified protocol 🌟

but if it goes wrong? you get GNUTLS_VERSION_UNKNOWN on error 😭 that's your "idk her" of return values, fr fr

πŸ’€ REPORTING BUGS πŸ’€

found something cursed? not me gatekeeping, go tell them:


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. ✨ (slay, honestly, very generous of them)


🌈 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/

go read it, iykyk 🫢


and that's the whole page, bestie!! this was gnutls 3.8.13, the gnutls_protocol_get_id(3) page, brought to you by the gnutls girlies πŸ’œ mwah, go convert some protocol names, periodt πŸ’…πŸŽ€

πŸ“¦ where this page comes from