LIBRESSL-SSL_SESSION_GET_COMPRESS_ID(3)
π 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:
ssl(3)SSL_get_session(3)SSL_SESSION_get_id(3)SSL_SESSION_get_protocol_version(3)SSL_SESSION_new(3)
π 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
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2017 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