SSL_SESSION_PRINT(3)

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

πŸ’… NAME πŸ’…

okay bestie, this is SSL_SESSION_PRINT(3) from the library functions manual, and it’s giving β€œprint some properties of an SSL_SESSION object” energy ✨

  • SSL_SESSION_print, SSL_SESSION_print_fp β€” print some properties of an SSL_SESSION object 🫢

✨ SYNOPSIS ✨

the synopsis said exactly this, no cap:

library β€œlibssl” libcrypto #include <openssl/ssl.h>

int
SSL_SESSION_print(BIO *bp, const SSL_SESSION *session);

int
SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *session);

πŸ¦‹ DESCRIPTION πŸ¦‹

so SSL_SESSION_print() prints some properties of session in a human-readable format to the BIO *bp, and the little lineup includes: protocol version, cipher name, session ID, session ID context, master key, session ticket lifetime hint, session ticket, start time, timeout, and verify return code 🌸

SSL_SESSION_print_fp() does the same as SSL_SESSION_print() except that it prints to the FILE *fp πŸŽ€


πŸŽ€ RETURN VALUES πŸŽ€

SSL_SESSION_print() and SSL_SESSION_print_fp() return 1 for success or 0 for failure, periodt πŸ’…

in some cases, the reason for failure can be determined with ERR_get_error(3) πŸ‘‘


🌈 SEE ALSO 🌈


πŸ‘‘ HISTORY πŸ‘‘

SSL_SESSION_print() first appeared in SSLeay 0.5.2 πŸ¦‹

SSL_SESSION_print_fp() first appeared in SSLeay 0.6.0 🌟

both functions have been available since OpenBSD 2.4 πŸ’–


mwah πŸ’‹ β€” this page came from Debian, dated June 8, 2025, and its page tag is SSL_SESSION_PRINT(3) βœ¨πŸŽ€

πŸ“¦ where this page comes from