aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFrederik Wedel-Heinen <[email protected]>2024-02-22 08:09:38 +0100
committerMatt Caswell <[email protected]>2026-08-25 13:41:24 +0200
commita99dd7aec58f1e07d032fb19ff3e203b6ba1b2da (patch)
treeb3bbf608079d9a426a4927845d955a8122f5a696 /apps
parentRevert changes to ssl_version_cmp() to avoid calling assert on non-sane inputs (diff)
downloadopenssl-a99dd7aec58f1e07d032fb19ff3e203b6ba1b2da.tar.gz
openssl-a99dd7aec58f1e07d032fb19ff3e203b6ba1b2da.zip
Adds DTLS 1.3 ACK message functionality
Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from https://github.com/openssl/openssl/pull/25119)
Diffstat (limited to 'apps')
-rw-r--r--apps/lib/s_cb.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/lib/s_cb.c b/apps/lib/s_cb.c
index a44bd534419..dcd5690e4df 100644
--- a/apps/lib/s_cb.c
+++ b/apps/lib/s_cb.c
@@ -663,7 +663,8 @@ void msg_cb(int write_p, int version, int content_type, const void *buf,
switch (content_type) {
case SSL3_RT_CHANGE_CIPHER_SPEC:
/* type 20 */
- str_content_type = ", ChangeCipherSpec";
+ if (version != DTLS1_3_VERSION)
+ str_content_type = ", ChangeCipherSpec";
break;
case SSL3_RT_ALERT:
/* type 21 */
@@ -692,6 +693,11 @@ void msg_cb(int write_p, int version, int content_type, const void *buf,
/* type 23 */
str_content_type = ", ApplicationData";
break;
+ case SSL3_RT_ACK:
+ /* type 26 */
+ if (version == DTLS1_3_VERSION)
+ str_content_type = ", ACK";
+ break;
case SSL3_RT_HEADER:
/* type 256 */
str_content_type = ", RecordHeader";
@@ -701,6 +707,10 @@ void msg_cb(int write_p, int version, int content_type, const void *buf,
str_content_type = ", InnerContent";
break;
default:
+ break;
+ }
+
+ if (str_content_type[0] == '\0') {
BIO_snprintf(tmpbuf, sizeof(tmpbuf) - 1, ", Unknown (content_type=%d)", content_type);
str_content_type = tmpbuf;
}