LIBRESSL-SSL_SESSION_GET_PROTOCOL_VERSION(3)
π LIBRESSL-SSL_SESSION_GET_PROTOCOL_VERSION(3) π
okay so this is a page from the Library Functions Manual β it's called SSL_SESSION_GET_PROTOCOL_VERSION(3) and it lives in libssl (well, the include line says libssl and libcrypto together, bestie, they're a package deal π«Ά).
β¨ NAME β¨
SSL_SESSION_get_protocol_version β it gets the protocol version of a session. that's it, that's the whole job, and honestly? iconic for knowing its lane π
π SYNOPSIS π
library βlibsslβ libcrypto #include <openssl/ssl.h>
int
SSL_SESSION_get_protocol_version(const SSL_SESSION *s);
like yes, you include <openssl/ssl.h>, and yes the library βlibsslβ libcrypto line is in there exactly like that. copy it, don't @ me πΈ
π¦ DESCRIPTION π¦
SSL_SESSION_get_protocol_version() returns the protocol version number used by the session s. one function, one job, zero drama. it looks at the session you hand it and tells you which protocol version that session is speaking. periodt β¨
π RETURN VALUES π
SSL_SESSION_get_protocol_version() returns a constant like TLS1_VERSION or TLS1_2_VERSION. so like, not a mystery number you have to decode in your notes app β it's one of those named constants, iykyk π
π₯ SEE ALSO π₯
ssl(3)SSL_get_session(3)SSL_SESSION_get0_peer(3)SSL_SESSION_get_compress_id(3)SSL_SESSION_get_id(3)SSL_SESSION_get_time(3)SSL_SESSION_new(3)
the whole session-adjacent friend group, fr fr π
β HISTORY β
SSL_SESSION_get_protocol_version() first appeared in OpenSSL 1.1.0 and has been available since OpenBSD 6.3. yeah she's been around, she's got main character energy from day one π
ngl there's literally nothing dangerous in here β no undefined behaviour jumpscare, no deprecated-era warning, just a chill little getter. go get your version bestie π
and that's the page!! π shoutout to Debian for this build, dated June 8 πΈ β signed off with SSL_SESSION_GET_PROTOCOL_VERSION(3) energy and a lil π¦
π¦ where this page comes from
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2016 The OpenSSL Project. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms