SSL_SESSION_PRINT(3SSL)

πŸ’… SSL_SESSION_print β€” the vibe check your TLS session never knew it needed πŸ’…

okay so bestie, this is the SSL_SESSION_PRINT(3SSL) page, and it's literally just about printing info out of a session object. Three little functions, all related, all giving you the receipts on what's inside an SSL_SESSION. Slay.


✨ NAME ✨

SSL_SESSION_print, SSL_SESSION_print_fp, SSL_SESSION_print_keylog β€” printf information about a session 🫢


🌸 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);

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea, bestie. You've got three ways to dump session info, and which one you pick is fully based on where you want the words to land.

  • SSL_SESSION_print() β€” prints summary information about the session in ses, and it sends all that over to the BIO called fp. That's it. That's the whole job. πŸ’–
  • SSL_SESSION_print_fp() β€” same exact energy as SSL_SESSION_print(), but the destination is a FILE called fp instead of a BIO. No cap, that's the only difference.
  • SSL_SESSION_print_keylog() β€” prints session information to the provided BIO <bp>, but in NSS keylog format. iykyk β€” that's the format people drop into their environment so Wireshark can decrypt stuff. Anyway, it prints to <bp>, keylog style. πŸ”₯

πŸ‘‘ 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. Periodt. There is no in-between. It's giving binary. 🌈


⭐ SEE ALSO ⭐


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 that's the whole page, you ate it πŸ’… version 4.0.3, dated 2026-09-29, and it lives under the manual name SSL_SESSION_PRINT(3SSL) β€” stan a classic. bye bestie, go print a session 🧚✨

πŸ“¦ where this page comes from