|SSL_GET_SHARED_CIPHERS(3)||Library Functions Manual||SSL_GET_SHARED_CIPHERS(3)|
ciphers supported by both client and server
*ssl, char *buf, int
If ssl contains a session in server mode,
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.
buf on success or
failure. The following situations cause failure:
NULLor empty, i.e., no ciphers are available for use by the server.
NULL, i.e., ssl contains no session.
NULLor empty, i.e., ssl contains no information about ciphers supported by the client, or the client does not support any ciphers.
SSL_get_shared_ciphers() first appeared in
SSLeay 0.4.5b and has been available since OpenBSD
If the list is too long to fit into len bytes, it is silently truncated after the last cipher name that fits, and all following ciphers are skipped. If the buffer is very short such that even the first cipher name does not fit, an empty string is returned even when some shared ciphers are actually available.
There is no easy way to find out how much space is required for buf or whether the supplied space was sufficient.
|January 9, 2021||OpenBSD-current|