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(const 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)> 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)>, L<SSL_CIPHER_get_name(3)>
45 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
47 Licensed under the OpenSSL license (the "License"). You may not use
48 this file except in compliance with the License. You can obtain a copy
49 in the file LICENSE in the source distribution or at
50 L<https://www.openssl.org/source/license.html>.