Sortix volatile manual
This manual documents Sortix volatile, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
SSL_get_shared_ciphers — ciphers supported by both client and serverSYNOPSIS
#include <openssl/ssl.h>SSL_get_shared_ciphers(const SSL *ssl, char *buf, int len);
DESCRIPTION
If ssl contains a session in server mode, SSL_get_shared_ciphers() puts as many names of ciphers that are supported by both the client and the server into the buffer buf as the buffer is long enough to contain. Names are separated by colons. At most len bytes are written to buf including the terminating NUL character.RETURN VALUES
SSL_get_shared_ciphers() returns buf on success or NULL on failure. The following situations cause failure:- SSL_is_server(3) is false, i.e., ssl is not set to server mode.
- SSL_get_ciphers(3) is NULL or empty, i.e., no ciphers are available for use by the server.
- SSL_get_session(3) is NULL, i.e., ssl contains no session.
- SSL_get_client_ciphers(3) is NULL or empty, i.e., ssl contains no information about ciphers supported by the client, or the client does not support any ciphers.
- The len argument is less than 2.