SSL_SESSION_PRINT(3ossl)

πŸ’… SSL_SESSION_print(3ossl) β€” the tea on printing session info

okay bestie, welcome to SSL_SESSION_print(3ossl) πŸŽ€ this is the OpenSSL manual page that teaches you how to spill everything a session knows about itself. three little functions, one big gossip session. let's get into it ✨


✨ NAME ✨

SSL_SESSION_print, SSL_SESSION_print_fp, SSL_SESSION_print_keylog β€” literally just printf information about a session πŸ’–


🌸 SYNOPSIS 🌸

here's the vibe, code and all, copy it exactly bestie:

#include <openssl/ssl.h>

int SSL_SESSION_print(BIO *fp, const SSL_SESSION *ses);
int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses);
int SSL_SESSION_print_keylog(BIO *bp, const SSL_SESSION *x);

πŸ¦‹ DESCRIPTION πŸ¦‹

SSL_SESSION_print() β€” she prints summary information about the session you handed her in ses, and she prints it to the BIO fp. that's it, that's the whole job, and she does it flawlessly πŸ’…

SSL_SESSION_print_fp() β€” same exact energy as SSL_SESSION_print(), except she prints it to the FILE fp instead. same tea, different cup πŸ«–

SSL_SESSION_print_keylog() β€” this one prints session information to the provided BIO <bp>, but in NSS keylog format. yes, the format. she's bilingual and she's not sorry 😌


πŸ‘‘ RETURN VALUES πŸ‘‘

all three of them β€” SSL_SESSION_print(), SSL_SESSION_print_fp() and SSL_SESSION_print_keylog β€” return 1 on success or 0 on error. 1 means slay, 0 means the vibe check failed 😭


πŸ’œ SEE ALSO πŸ’œ

ssl(7) β€” go read it, it's the lore, iykyk πŸ“–


Copyright 2017 The OpenSSL Project Authors. All Rights Reserved. 🫢

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>. ✨


ngl bestie, "not use this file except in compliance with the License" is not a suggestion, it's the rule. read the license, she's short, she's iconic, she's the moment πŸ’€

and that's the whole page, no cap πŸ’– this was OpenSSL 3.5.9, dated 2026-09-29, and this manual page is SSL_SESSION_PRINT(3ossl). go print a session, bestie, you've got this πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from