SSL_SESSION_get_compress_id(3ssl)

SSL_SESSION_get_compress_id3ssl

Get details about the compression associated with a session

Usage

 #include <openssl/ssl.h>
 unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s);

Overview

If compression has been negotiated for an ssl session then SSL_SESSION_get_compress_id() will return the id for the compression method or 0 otherwise. The only built-in supported compression method is zlib which has an id of 1.

Return values

SSL_SESSION_get_compress_id() returns the id of the compression method or 0 if none.

Releases

6 releases since Debian 9 (Stretch); the text changed 5 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13
  6. Arch

From openssl 3.6.5-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.