From 7e58d56f7a655feae6127c5fb15e4042012d02f5 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 12 Jul 2014 19:45:53 +0000 Subject: 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@ --- src/lib/libssl/ssl.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/libssl/ssl.h') diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index 5ea440231a..7547d05aa6 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl.h,v 1.61 2014/07/11 09:24:44 beck Exp $ */ +/* $OpenBSD: ssl.h,v 1.62 2014/07/12 19:45:53 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -293,6 +293,8 @@ extern "C" { #define SSL_TXT_SHA256 "SHA256" #define SSL_TXT_SHA384 "SHA384" +#define SSL_TXT_DTLS1 "DTLSv1" +#define SSL_TXT_DTLS1_BAD "DTLSv1-bad" #define SSL_TXT_SSLV2 "SSLv2" #define SSL_TXT_SSLV3 "SSLv3" #define SSL_TXT_TLSV1 "TLSv1" -- cgit v1.2.3-55-g6feb