SSL_SESSION_GET_COMPRESS_ID(3ossl)
β¨ SSL_SESSION_GET_COMPRESS_ID π
okay bestie, so this one is from the OpenSSL manual, section 3ossl β it's called SSL_SESSION_GET_COMPRESS_ID(3ossl) and honestly? it's a lil cutie. tiny page, one job, does it slay. let's get into it π
πΈ NAME πΈ
SSL_SESSION_get_compress_id β get the deets about the compression that's associated with a session π«Ά
β¨ SYNOPSIS β¨
like, first you gotta include the header, periodt:
#include <openssl/ssl.h>
unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s);
that's it. that's the whole vibe check. π
π¦ DESCRIPTION π¦
okay so here's the tea π β if compression has actually been negotiated for an ssl session, then SSL_SESSION_get_compress_id() will hand you back the id for the compression method. and if it hasn't? it just returns 0. no drama, no notes. π
and ngl, the compression method menu is short β like, tragically short. the only built-in supported compression method is zlib, and its id is 1. that's the entire lineup. one (1) whole option. iconic in a minimal way honestly π
π RETURN VALUES π
SSL_SESSION_get_compress_id() returns the id of the compression method β or 0 if there isn't one. that's it, that's the return value. π§
π SEE ALSO π
ssl(7)β go read it, iykyk π
π COPYRIGHT π
Copyright 2017 The OpenSSL Project Authors. All Rights Reserved. π
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>. π₯
fr fr bestie, read the license before you go wild β "except in compliance with the License" is doing real work in that sentence π
okay that's the whole page, mwah π β this was 3.5.0, dated 2026-09-25, and it's the SSL_SESSION_GET_COMPRESS_ID(3ossl) manual, signing off. slay, bye π¦β¨
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms