Provide ssl_version_string() function, which uses one of those modern C
authorjsing <jsing@openbsd.org>
Sat, 12 Jul 2014 19:45:53 +0000 (19:45 +0000)
committerjsing <jsing@openbsd.org>
Sat, 12 Jul 2014 19:45:53 +0000 (19:45 +0000)
commitf6f8cf51ac74ffba17eca4f309978534449d9b00
tree94680a1ba873967b08ded8ca1441366b4cf94fb0
parent937dcddeb8385dbc2cf10541cbf9b1bee69aba96
Provide ssl_version_string() function, which uses one of those modern C
constructs (a switch statement) and returns the appropriate string defined
by SSL_TXT_* for the given version, including support for DTLSv1 and
DTLSv1-bad. Use this function in SSL_get_version() and SSL_SESSION_print().

ok beck@
lib/libssl/src/ssl/ssl.h
lib/libssl/src/ssl/ssl_lib.c
lib/libssl/src/ssl/ssl_locl.h
lib/libssl/src/ssl/ssl_txt.c
lib/libssl/ssl.h
lib/libssl/ssl_lib.c
lib/libssl/ssl_locl.h
lib/libssl/ssl_txt.c