diff options
author | jsing <> | 2021-02-20 08:30:52 +0000 |
---|---|---|
committer | jsing <> | 2021-02-20 08:30:52 +0000 |
commit | 2eec7107fa9d0d8c2604679e484ce02dd1b25d84 (patch) | |
tree | 37c6a4853dd79beb7fa611a44f9c522fcb8ddc96 /src/lib/libssl/ssl_lib.c | |
parent | 45ca0386c85a3541c21cb78dee47203b5492cc22 (diff) | |
download | openbsd-2eec7107fa9d0d8c2604679e484ce02dd1b25d84.tar.gz openbsd-2eec7107fa9d0d8c2604679e484ce02dd1b25d84.tar.bz2 openbsd-2eec7107fa9d0d8c2604679e484ce02dd1b25d84.zip |
Handle DTLS1_2_VERSION in various places.
ok tb@
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
-rw-r--r-- | src/lib/libssl/ssl_lib.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index a48d97f17e..f802875274 100644 --- a/src/lib/libssl/ssl_lib.c +++ b/src/lib/libssl/ssl_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_lib.c,v 1.245 2021/02/08 17:20:47 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_lib.c,v 1.246 2021/02/20 08:30:52 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 | * |
@@ -2455,8 +2455,6 @@ const char * | |||
2455 | ssl_version_string(int ver) | 2455 | ssl_version_string(int ver) |
2456 | { | 2456 | { |
2457 | switch (ver) { | 2457 | switch (ver) { |
2458 | case DTLS1_VERSION: | ||
2459 | return (SSL_TXT_DTLS1); | ||
2460 | case TLS1_VERSION: | 2458 | case TLS1_VERSION: |
2461 | return (SSL_TXT_TLSV1); | 2459 | return (SSL_TXT_TLSV1); |
2462 | case TLS1_1_VERSION: | 2460 | case TLS1_1_VERSION: |
@@ -2465,6 +2463,10 @@ ssl_version_string(int ver) | |||
2465 | return (SSL_TXT_TLSV1_2); | 2463 | return (SSL_TXT_TLSV1_2); |
2466 | case TLS1_3_VERSION: | 2464 | case TLS1_3_VERSION: |
2467 | return (SSL_TXT_TLSV1_3); | 2465 | return (SSL_TXT_TLSV1_3); |
2466 | case DTLS1_VERSION: | ||
2467 | return (SSL_TXT_DTLS1); | ||
2468 | case DTLS1_2_VERSION: | ||
2469 | return (SSL_TXT_DTLS1_2); | ||
2468 | default: | 2470 | default: |
2469 | return ("unknown"); | 2471 | return ("unknown"); |
2470 | } | 2472 | } |