ciphers supported by both client and server
, char *buf
() puts the names of the
ciphers that are supported by both the client and the server of
into the buffer
. Names are separated by colons. At most
bytes are written to
including the terminating NUL character.
contains no session, if the session
contains no shared ciphers, or if len
than 2, SSL_get_shared_ciphers
. Otherwise, it returns
() is available in all
versions of OpenSSL.
If the list is too long to fit into len
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
or whether the supplied space was