diff options
author | jsing <> | 2014-07-12 19:45:53 +0000 |
---|---|---|
committer | jsing <> | 2014-07-12 19:45:53 +0000 |
commit | 7e58d56f7a655feae6127c5fb15e4042012d02f5 (patch) | |
tree | 9a0b39938bd33545c973591ba4438760ac1fb329 /src/lib/libssl/ssl.h | |
parent | 975f72772307c423ba03a669c53eb1aea6f39fc1 (diff) | |
download | openbsd-7e58d56f7a655feae6127c5fb15e4042012d02f5.tar.gz openbsd-7e58d56f7a655feae6127c5fb15e4042012d02f5.tar.bz2 openbsd-7e58d56f7a655feae6127c5fb15e4042012d02f5.zip |
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@
Diffstat (limited to '')
-rw-r--r-- | src/lib/libssl/ssl.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ | |||
1 | /* $OpenBSD: ssl.h,v 1.61 2014/07/11 09:24:44 beck Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.62 2014/07/12 19:45:53 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -293,6 +293,8 @@ extern "C" { | |||
293 | #define SSL_TXT_SHA256 "SHA256" | 293 | #define SSL_TXT_SHA256 "SHA256" |
294 | #define SSL_TXT_SHA384 "SHA384" | 294 | #define SSL_TXT_SHA384 "SHA384" |
295 | 295 | ||
296 | #define SSL_TXT_DTLS1 "DTLSv1" | ||
297 | #define SSL_TXT_DTLS1_BAD "DTLSv1-bad" | ||
296 | #define SSL_TXT_SSLV2 "SSLv2" | 298 | #define SSL_TXT_SSLV2 "SSLv2" |
297 | #define SSL_TXT_SSLV3 "SSLv3" | 299 | #define SSL_TXT_SSLV3 "SSLv3" |
298 | #define SSL_TXT_TLSV1 "TLSv1" | 300 | #define SSL_TXT_TLSV1 "TLSv1" |