libressl-SSL_SESSION_print3
Print some properties of an ssl_session object
Usage
SSL Library (libssl, -lssl) libcrypto
#include <openssl/ssl.h>
int
SSL_SESSION_print(BIO *bp, const SSL_SESSION *session);
int
SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *session);
Overview
SSL_SESSION_print() prints some properties of session in a human-readable format to the BIO *bp, including protocol version, cipher name, session ID, session ID context, master key, session ticket lifetime hint, session ticket, start time, timeout, and verify return code.
SSL_SESSION_print_fp() does the same as SSL_SESSION_print() except that it prints to the FILE *fp.
Return values
SSL_SESSION_print() and SSL_SESSION_print_fp() return 1 for success or 0 for failure.
In some cases, the reason for failure can be determined with ERR_get_error(3).