summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorinoguchi <inoguchi@openbsd.org>2021-04-02 10:19:19 +0000
committerinoguchi <inoguchi@openbsd.org>2021-04-02 10:19:19 +0000
commite8cca36c7654cffc7965b4e44a015cd4f054465d (patch)
tree0b641268659cb27e83ada0a4e583e42892b884e1
parentDon't leak the uri of a delta with duplicate serial. (diff)
downloadwireguard-openbsd-e8cca36c7654cffc7965b4e44a015cd4f054465d.tar.xz
wireguard-openbsd-e8cca36c7654cffc7965b4e44a015cd4f054465d.zip
Show DTLS1.2 message with openssl(1) s_server and s_client
ok jsing@ tb@
-rw-r--r--usr.bin/openssl/s_cb.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/openssl/s_cb.c b/usr.bin/openssl/s_cb.c
index b6b3b3e74f6..3a0c89bb7a2 100644
--- a/usr.bin/openssl/s_cb.c
+++ b/usr.bin/openssl/s_cb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_cb.c,v 1.14 2020/04/26 02:09:21 inoguchi Exp $ */
+/* $OpenBSD: s_cb.c,v 1.15 2021/04/02 10:19:19 inoguchi Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -413,6 +413,9 @@ msg_cb(int write_p, int version, int content_type, const void *buf, size_t len,
case DTLS1_VERSION:
str_version = "DTLS 1.0 ";
break;
+ case DTLS1_2_VERSION:
+ str_version = "DTLS 1.2 ";
+ break;
default:
str_version = "???";
}
@@ -474,7 +477,8 @@ msg_cb(int write_p, int version, int content_type, const void *buf, size_t len,
}
if (version == SSL3_VERSION || version == TLS1_VERSION ||
version == TLS1_1_VERSION || version == TLS1_2_VERSION ||
- version == TLS1_3_VERSION || version == DTLS1_VERSION) {
+ version == TLS1_3_VERSION || version == DTLS1_VERSION ||
+ version == DTLS1_2_VERSION) {
/* XXX magic numbers are in ssl3.h */
switch (content_type) {
case 20: