5
SSL_get_current_cipher, SSL_get_cipher, SSL_get_cipher_name,
6
SSL_get_cipher_bits, SSL_get_cipher_version - get SSL_CIPHER of a connection
10
#include <openssl/ssl.h>
12
SSL_CIPHER *SSL_get_current_cipher(SSL *ssl);
13
#define SSL_get_cipher(s) \
14
SSL_CIPHER_get_name(SSL_get_current_cipher(s))
15
#define SSL_get_cipher_name(s) \
16
SSL_CIPHER_get_name(SSL_get_current_cipher(s))
17
#define SSL_get_cipher_bits(s,np) \
18
SSL_CIPHER_get_bits(SSL_get_current_cipher(s),np)
19
#define SSL_get_cipher_version(s) \
20
SSL_CIPHER_get_version(SSL_get_current_cipher(s))
24
SSL_get_current_cipher() returns a pointer to an SSL_CIPHER object containing
25
the description of the actually used cipher of a connection established with
28
SSL_get_cipher() and SSL_get_cipher_name() are identical macros to obtain the
29
name of the currently used cipher. SSL_get_cipher_bits() is a
30
macro to obtain the number of secret/algorithm bits used and
31
SSL_get_cipher_version() returns the protocol name.
32
See L<SSL_CIPHER_get_name(3)|SSL_CIPHER_get_name(3)> for more details.
36
SSL_get_current_cipher() returns the cipher actually used or NULL, when
37
no session has been established.
41
L<ssl(3)|ssl(3)>, L<SSL_CIPHER_get_name(3)|SSL_CIPHER_get_name(3)>