SSL_SESSION_PRINT(3ossl)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

✨ 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 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