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 π
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
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms