LIBRESSL-SSL_COMP_ADD_COMPRESSION_METHOD(3)
π
SSL_COMP_ADD_COMPRESSION(3) β the libressl SSL_COMP_ADD_COMPRESSION_METHOD(3) page, bestie edition π
okay so picture this: you're digging through some ancient code, you find SSL_COMP_get_compression_methods, and you're like "ooh compression, sounds slay." bestie. it's not. it's a fossil. let's get into it β¨
πΈ NAME πΈ
SSL_COMP_get_compression_methods β the function that handles SSL/TLS integrated compression methods, except the way it "handles" them is by doing absolutely nothing. no cap. π
π¦ SYNOPSIS π¦
library "libssl" "libcrypto"
#include <openssl/ssl.h>
STACK_OF(SSL_COMP) *
SSL_COMP_get_compression_methods(void);
that's the whole vibe. one function, zero arguments, and a return type that's giving STACK_OF(SSL_COMP) * π«Ά
β¨ DESCRIPTION β¨
so this function is deprecated and it has no effect. like, none. it's a decorative little ornament sitting in the header file. it exists purely for compatibility with legacy application code β you know, the old code that still calls it and would throw a whole tantrum if the symbol weren't there. π
back in the day, SSL_COMP_get_compression_methods() used to return a stack of available compression methods. iconic behavior. main character energy. but that era is over, and now it's just vibes and an empty promise. π
ngl, if you're out here relying on this for actual compression, the vibe check has failed. it does nothing. plan accordingly. π
π₯ RETURN VALUES π₯
SSL_COMP_get_compression_methods() always returns NULL.
not "sometimes." not "depends." always. NULL. every single time, forever, periodt. π
π SEE ALSO π
ssl(3)β go hang out with the actual SSL page, it's way more fun than this one π¦
π HISTORY π
SSL_COMP_get_compression_methods() first appeared in OpenSSL 0.9.8 and has been available since OpenBSD 4.5. a true elder. respect the heritage even if the function is lowkey useless now π«‘
aaaand that's the page, bestie π written up by the Debian crew and dated June 8 (the year is doing a little disappearing act in that footer, the vibes ate it π), for the LIBRESSL-SSL_COMP_ADD_COMPRESSION_METHOD(3) manual. mwah, go forth and not compress anything πΈπ
π¦ where this page comes from
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms