1SSL_get_ciphers(3) OpenSSL SSL_get_ciphers(3)
2
3
4
6 SSL_get_ciphers, SSL_get_cipher_list - get list of available
7 SSL_CIPHERs
8
10 #include <openssl/ssl.h>
11
12 STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *ssl);
13 const char *SSL_get_cipher_list(const SSL *ssl, int priority);
14
16 SSL_get_ciphers() returns the stack of available SSL_CIPHERs for ssl,
17 sorted by preference. If ssl is NULL or no ciphers are available, NULL
18 is returned.
19
20 SSL_get_cipher_list() returns a pointer to the name of the SSL_CIPHER
21 listed for ssl with priority. If ssl is NULL, no ciphers are available,
22 or there are less ciphers than priority available, NULL is returned.
23
25 The details of the ciphers obtained by SSL_get_ciphers() can be
26 obtained using the SSL_CIPHER_get_name(3) family of functions.
27
28 Call SSL_get_cipher_list() with priority starting from 0 to obtain the
29 sorted list of available ciphers, until NULL is returned.
30
32 See DESCRIPTION
33
35 ssl(3), SSL_CTX_set_cipher_list(3), SSL_CIPHER_get_name(3)
36
37
38
391.0.2o 2020-08-01 SSL_get_ciphers(3)