1 .\" $OpenBSD: SSL_get_shared_ciphers.3,v 1.1 2016/12/10 14:56:56 schwarze Exp $
3 .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dd $Mdocdate: December 10 2016 $
18 .Dt SSL_GET_SHARED_CIPHERS 3
21 .Nm SSL_get_shared_ciphers
22 .Nd ciphers supported by both client and server
26 .Fo SSL_get_shared_ciphers
32 .Fn SSL_get_shared_ciphers
33 puts the names of the ciphers that are supported by both the client
38 Names are separated by colons.
43 including the terminating NUL character.
47 contains no session, if the session contains no shared ciphers,
51 .Fn SSL_get_shared_ciphers
57 .Fn SSL_get_shared_ciphers
58 is available in all versions of OpenSSL.
60 If the list is too long to fit into
62 bytes, it is silently truncated after the last cipher name that fits,
63 and all following ciphers are skipped.
64 If the buffer is very short such that even the first cipher name
65 does not fit, an empty string is returned even when some shared
66 ciphers are actually available.
68 There is no easy way to find out how much space is required for
70 or whether the supplied space was sufficient.