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 inses, and it sends all that over to theBIOcalledfp. That's it. That's the whole job. πSSL_SESSION_print_fp()β same exact energy asSSL_SESSION_print(), but the destination is aFILEcalledfpinstead of aBIO. No cap, that's the only difference.SSL_SESSION_print_keylog()β prints session information to the providedBIO<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 π
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
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms