SSL_NUM_RENEGOTIATIONS(3)
π 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 timeSSL_new(3),SSL_clear(3), orSSL_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 to0. so it's read-and-yeet, one-stop shop πSSL_total_renegotiations()β reports how many renegotiations were initiated in ssl sinceSSL_new(3)orSSL_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
- 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