LIBRESSL-SSL_SESSION_GET_COMPRESS_ID(3)

πŸ“¦ version 4.4.0, in alpine 3.24, arch rolling

πŸ’… LIBRESSL-SSL_SESSION_GET_COMPRESS_ID(3) πŸ’…

okay so bestie, this one lives in the libssl / libcrypto family (yes, both, they're like sisters, iykyk) and honestly it's a lil baby function that just tells you about compression on an SSL session πŸŽ€


✨ NAME ✨

SSL_SESSION_get_compress_id β€” get the deets about the compression that's associated with a session, periodt πŸ’–


🌸 SYNOPSIS 🌸

library β€œlibssl” libcrypto
#include <openssl/ssl.h>

unsigned int
SSL_SESSION_get_compress_id(const SSL_SESSION *s);

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• β€” if compression has actually been negotiated for an ssl session, then SSL_SESSION_get_compress_id() hands you back the id for that compression method. and if it hasn't? it just returns 0, no drama, no cap πŸ™ˆ

and the only built-in supported compression method is zlib, which has an id of 1. that's the whole squad, literally one member πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

like, go read these too bestie, they're all iconic in their own way:


🌈 HISTORY 🌈

SSL_SESSION_get_compress_id() first appeared in OpenSSL 1.0.1 and has been available since OpenBSD 5.3 ✨ so she's been around, she's got main character energy, she's not new here 🫢


aaaand that's the page πŸŽ€ it's giving short but iconic, ngl. this version is from the Debian fam, dated June 8, 2025, and it's titled SSL_SESSION_GET_COMPRESS_ID(3) β€” slay, go compress some things (or don't, zlib's the only one invited anyway) πŸ’œ

πŸ“¦ where this page comes from