SSL_SESSION_GET0_CIPHER(3) Library Functions Manual SSL_SESSION_GET0_CIPHER(3)

SSL_SESSION_get0_cipherretrieve the SSL cipher associated with a session

#include <openssl/ssl.h>

const SSL_CIPHER *
SSL_SESSION_get0_cipher(const SSL_SESSION *session);

() retrieves the cipher that was used by the connection when the session was created, or NULL if it cannot be determined.

The value returned is a pointer to an object maintained within session and should not be released.

SSL_SESSION_get0_cipher() returns the SSL_CIPHER associated with session or NULL if it cannot be determined.

ssl(3), SSL_CIPHER_get_name(3), SSL_get_current_cipher(3), SSL_get_session(3), SSL_SESSION_new(3)

The SSL_SESSION_get0_cipher() function first appeared in OpenSSL 1.1.0 and has been available since OpenBSD 7.0.

May 12, 2021 Linux 6.8.2-arch2-1