SSL_NUM_RENEGOTIATIONS(3)

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

πŸ’… SSL_NUM_RENEGOTIATIONS(3) πŸ’…

okay so bestie, this is a page from the Library Functions Manual β€” the libssl libcrypto corner of the universe β€” and it's literally all about renegotiation counters. tiny page, big "wait what" energy, but we're gonna slay it together 🫢


✨ NAME ✨

SSL_num_renegotiations, SSL_clear_num_renegotiations, SSL_total_renegotiations β€” renegotiation counters πŸŽ€


✨ SYNOPSIS ✨

girl. first of all you gotta pull in the library, it's giving libssl libcrypto and the header:

#include <openssl/ssl.h>

then the three little icons themselves, all returning long and all taking an SSL *ssl:

long
SSL_num_renegotiations(SSL *ssl);

long
SSL_clear_num_renegotiations(SSL *ssl);

long
SSL_total_renegotiations(SSL *ssl);

✨ DESCRIPTION ✨

  • SSL_num_renegotiations() β€” reads the counter of how many renegotiations got initiated in ssl since the last time SSL_new(3), SSL_clear(3), or SSL_clear_num_renegotiations() was called on that object. it's basically a "how many times did we go around again" tally πŸ“Š
  • SSL_clear_num_renegotiations() β€” does that exact same thing and resets the renegotiation counter back to 0. so it's read-and-yeet, one-stop shop πŸ’…
  • SSL_total_renegotiations() β€” reports how many renegotiations were initiated in ssl since SSL_new(3) or SSL_clear(3) was last called on that object. no manual reset in the mix, just the bigger-picture number πŸ‘‘
heads up babes: these functions are implemented as macros. no cap, that's just how they are 🧚

✨ RETURN VALUES ✨

all three of them return a number of renegotiations. that's it. that's the whole vibe check. πŸ”₯


✨ SEE ALSO ✨

BIO_set_ssl_renegotiate_bytes(3), ssl(3), SSL_ctrl(3), SSL_read(3), SSL_renegotiate(3), SSL_write(3)

go read them, iykyk, they're lowkey iconic 🌸


✨ HISTORY ✨

these functions first appeared in SSLeay 0.9.0 and have been available since OpenBSD 2.4. ancient. legendary. still here. periodt ⭐


k bye, love u, go count ur renegotiations responsibly πŸ’–

Debian Β· June 8, 2025 Β· SSL_NUM_RENEGOTIATIONS(3) β€” mwah, signed off with a kiss πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from