NE_SSL_PROTO_NAME(3)

✨ NE_SSL_PROTO_NAME ✨

okay so bestie, welcome to the neon API reference β€” this one's a tiny little function that's about to become your new fave, no cap πŸ’–


🌸 NAME 🌸

ne_ssl_proto_name β€” literally just maps an SSL/TLS protocol version to a name you can actually read πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <ne_ssl.h>

const char *ne_ssl_proto_name(enum ne_ssl_protocol proto);

πŸ’… DESCRIPTION πŸ’…

so the way that ne_ssl_proto_name works is: you hand it an SSL/TLS version constant, and it gives you back a human-readable name for it. that's it. that's the whole vibe. πŸŽ€

the set of versions currently are as follows, bestie β€” memorize these, they're iconic:

  • NE_SSL_PROTO_UNSPEC β€” unspecified/unknown version πŸ™ˆ
  • NE_SSL_PROTO_SSL3 β€” SSL v3 πŸ’€
  • NE_SSL_PROTO_TLS_1_0 β€” TLS v1.0
  • NE_SSL_PROTO_TLS_1_1 β€” TLS v1.1
  • NE_SSL_PROTO_TLS_1_2 β€” TLS v1.2
  • NE_SSL_PROTO_TLS_1_3 β€” TLS v1.3 ⭐

🌈 RETURN VALUE 🌈

the ne_ssl_proto_name function always returns a non-NULL string β€” even if the version constant is not valid. so like, you literally cannot get a NULL back from this, she ate and left no crumbs 🫢


🧚 HISTORY 🧚

ne_ssl_proto_name is available in neon 0.34.0 and later. so if you're on something older… bestie, please upgrade 😭


πŸ‘‘ SEE ALSO πŸ‘‘


Copyright Β© 2001-2026 Joe Orton


and that's the whole page, bestie ✨ this lil gem comes to you from the neon manual, dated 03/20/2026 β€” go forth and name those protocols, ily, bye! πŸ’œπŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from