SSL_SESSION_GET_COMPRESS_ID(3ossl)

πŸ“¦ version 3.5.0, in opensuse-leap 16.0

✨ 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 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