SSL_SESSION_GET_COMPRESS_ID(3SSL)
β¨ SSL_SESSION_get_compress_id β¨
okay bestie, welcome to the manual page for SSL_SESSION_get_compress_id from the OpenSSL fam π this one lives in the 3SSL manual section, and it's literally so simple it's almost rude. let's get into it π«Ά
πΈ NAME πΈ
SSL_SESSION_get_compress_id β get the deets about the compression that's linked to a session π
π SYNOPSIS π
#include <openssl/ssl.h>
unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s);
like, that's the whole vibe. one include, one function, no drama π¦
π DESCRIPTION π
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 that compression method π₯. and if compression did not get negotiated? you get 0. that's it. that's the whole function.
and the only built-in compression method that's supported is zlib, which has an id of 1 β so if you see a 1 come back, that's zlib, no cap π
β RETURN VALUES β
SSL_SESSION_get_compress_id() returns the id of the compression method, or 0 if there isn't one. simple as π
π 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>.
and that's the whole page, bestie π this was version 4.0.3, dated 2026-09-29, and it's giving "short and iconic" β we love a low-maintenance function that still ate πΈπ
β¨
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms