summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinoguchi <>2021-04-02 10:19:19 +0000
committerinoguchi <>2021-04-02 10:19:19 +0000
commit0a9fac140825964d4417722f8cf16da6f27310a1 (patch)
tree284a8025938f9d52863d8cc52db6232258c20c5f /src
parent004a69e53e869be83baac1b3ab3ebe46be7c6d62 (diff)
downloadopenbsd-0a9fac140825964d4417722f8cf16da6f27310a1.tar.gz
openbsd-0a9fac140825964d4417722f8cf16da6f27310a1.tar.bz2
openbsd-0a9fac140825964d4417722f8cf16da6f27310a1.zip
Show DTLS1.2 message with openssl(1) s_server and s_client
ok jsing@ tb@
Diffstat (limited to '')
-rw-r--r--src/usr.bin/openssl/s_cb.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/s_cb.c b/src/usr.bin/openssl/s_cb.c
index b6b3b3e74f..3a0c89bb7a 100644
--- a/src/usr.bin/openssl/s_cb.c
+++ b/src/usr.bin/openssl/s_cb.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s_cb.c,v 1.14 2020/04/26 02:09:21 inoguchi Exp $ */ 1/* $OpenBSD: s_cb.c,v 1.15 2021/04/02 10:19:19 inoguchi 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 *
@@ -413,6 +413,9 @@ msg_cb(int write_p, int version, int content_type, const void *buf, size_t len,
413 case DTLS1_VERSION: 413 case DTLS1_VERSION:
414 str_version = "DTLS 1.0 "; 414 str_version = "DTLS 1.0 ";
415 break; 415 break;
416 case DTLS1_2_VERSION:
417 str_version = "DTLS 1.2 ";
418 break;
416 default: 419 default:
417 str_version = "???"; 420 str_version = "???";
418 } 421 }
@@ -474,7 +477,8 @@ msg_cb(int write_p, int version, int content_type, const void *buf, size_t len,
474 } 477 }
475 if (version == SSL3_VERSION || version == TLS1_VERSION || 478 if (version == SSL3_VERSION || version == TLS1_VERSION ||
476 version == TLS1_1_VERSION || version == TLS1_2_VERSION || 479 version == TLS1_1_VERSION || version == TLS1_2_VERSION ||
477 version == TLS1_3_VERSION || version == DTLS1_VERSION) { 480 version == TLS1_3_VERSION || version == DTLS1_VERSION ||
481 version == DTLS1_2_VERSION) {
478 /* XXX magic numbers are in ssl3.h */ 482 /* XXX magic numbers are in ssl3.h */
479 switch (content_type) { 483 switch (content_type) {
480 case 20: 484 case 20: