SSL_get_ciphers 3 2005-04-23 0.9.9-dev OpenSSL
NAME
SSL_get_ciphers, SSL_get_cipher_list - get list of available SSL_CIPHERs
LIBRARY
libcrypto, -lcrypto
SYNOPSIS
#include
STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *ssl);
const char *SSL_get_cipher_list(const SSL *ssl, int priority);
DESCRIPTION
_S_S_L___g_e_t___c_i_p_h_e_r_s_(_) returns the stack of available SSL_CIPHERs for ssssll,
sorted by preference. If ssssll is NULL or no ciphers are available, NULL
is returned.
_S_S_L___g_e_t___c_i_p_h_e_r___l_i_s_t_(_) returns a pointer to the name of the SSL_CIPHER
listed for ssssll with pprriioorriittyy. If ssssll is NULL, no ciphers are
available, or there are less ciphers than pprriioorriittyy available, NULL
is returned.
NOTES
The details of the ciphers obtained by _S_S_L___g_e_t___c_i_p_h_e_r_s_(_) can be obtained using
the _S_S_L___C_I_P_H_E_R___g_e_t___n_a_m_e(3) family of functions.
Call _S_S_L___g_e_t___c_i_p_h_e_r___l_i_s_t_(_) with pprriioorriittyy starting from 0 to obtain the
sorted list of available ciphers, until NULL is returned.
RETURN VALUES
See DESCRIPTION
SEE ALSO
_s_s_l(3), _S_S_L___C_T_X___s_e_t___c_i_p_h_e_r___l_i_s_t(3),
_S_S_L___C_I_P_H_E_R___g_e_t___n_a_m_e(3)