SSL_SESSION_PRINT(3ossl)
β¨ SSL_SESSION_PRINT π β the one where we spill all the tea about a session π«
okay so this is the 3ossl page (that's the OpenSSL corner of the man-page universe, iykyk) and it's literally all about printing out session info. no cap, that's the whole vibe. three little functions, one job: make a session go from "mysterious blob" to "readable text bestie". π¦
πΈ SYNOPSIS πΈ
#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);
like, look at them. three icons. same energy. π
π DESCRIPTION π
π SSL_SESSION_print()
prints summary information about the session provided in ses to the BIO fp. that's it. that's the function. it takes your session, gives you the highlights, sends them off into the BIO. summary-style, main character energy. β¨
π SSL_SESSION_print_fp()
does the same as SSL_SESSION_print() except it prints it to the FILE fp. so literally the same glow-up moment, just with a FILE instead of a BIO. same energy, different target. π
π SSL_SESSION_print_keylog()
prints session information to the provided BIO <bp> in NSS keylog format. that's the format, bestie β NSS keylog β not some made-up thing. it's giving "I know exactly what format I am". π₯
β RETURN VALUES β
SSL_SESSION_print(), SSL_SESSION_print_fp() and SSL_SESSION_print_keylog return 1 on success or 0 on error.
so yeah β 1 means slay, 0 means something went sideways. no in-between, no drama, just a clean little 0/1 situation. π
π¦ SEE ALSO π¦
ssl(7)β go read it, it's the bigger picture and it's worth it, fr fr.
π 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>.
okay real talk, the license stuff isn't optional β "you may not use this file except in compliance with the License", so please actually read the License, bestie. it's giving legally binding. π
π and that's the whole page! this version is from 3.5.6, dated 2026-04-07, and it lives in the SSL_SESSION_PRINT(3ossl) era of your local man pages. go forth, print your sessions, stay iconic. πππ«Ά
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms