SSL_SESSION_GET_COMPRESS_ID(3ossl)
π SSL_SESSION_GET_COMPRESS_ID π
okay bestie, so this one lives in the OpenSSL family of manual pages, and it's literally the tiniest little function but she's important so let's give her the attention she deserves π
β¨ NAME β¨
SSL_SESSION_get_compress_id β get the deets about the compression that's associated with a session π¦
πΈ SYNOPSIS πΈ
#include <openssl/ssl.h>
unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s);
like, that's it. one include, one function, one const pointer. she's low maintenance π
π DESCRIPTION π
okay so picture this: 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? you get 0. that's the whole vibe check π
and the tea on which compression methods exist: the only built-in supported compression method is zlib, and she has an id of 1. that's it. that's the list. no cap π
π«Ά RETURN VALUES π«Ά
SSL_SESSION_get_compress_id() returns the id of the compression method, or 0 if there isn't one. so like, 0 is your "nope, nothing here" signal, not a mystery number, bestie. it's giving clear communication π
π SEE ALSO π
go read that one next, 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 read the license before you do anything spicy with this, that's the rule and we respect her π
and that's the whole page, bestie!! mwah π this was OpenSSL 3.5.9, dated 2026-09-29 β thanks for scrolling all the way to the bottom with me, you're the main character of my terminal πβ¨π¦
π¦ where this page comes from
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms