diff options
| author | jsing <> | 2014-07-12 19:45:53 +0000 |
|---|---|---|
| committer | jsing <> | 2014-07-12 19:45:53 +0000 |
| commit | ca5656e7eced6ebea522071e6d0734cccfb29497 (patch) | |
| tree | 9a0b39938bd33545c973591ba4438760ac1fb329 /src/lib/libssl/ssl.h | |
| parent | c384aa261abeb17e20d0dce22cd64e0ba9fcc112 (diff) | |
| download | openbsd-ca5656e7eced6ebea522071e6d0734cccfb29497.tar.gz openbsd-ca5656e7eced6ebea522071e6d0734cccfb29497.tar.bz2 openbsd-ca5656e7eced6ebea522071e6d0734cccfb29497.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 'src/lib/libssl/ssl.h')
| -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" |
