LIBRESSL-SSL_COMP_ADD_COMPRESSION_METHOD(3)

πŸ“¦ version 4.4.0, in alpine 3.24, arch rolling

πŸ’… 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