dep-openssl/apps/lib
Jakub Zelenka e0bf61917a apps: decode DTLSv1.2 records in s_client/s_server -msg output
The msg_cb message callback used by the -msg option only recognised
DTLSv1.0 among the DTLS versions, so DTLSv1.2 records were logged as
"Not TLS data or unknown version" instead of being decoded. Add
DTLS1_2_VERSION to the recognised version check and to the ssl_versions
lookup table, and wrap the now-overlong condition.

Add a test that runs s_client against s_server over TLSv1.2, TLSv1.3 and
DTLSv1.2, logging the protocol messages via -msg, and checks that every
record is decoded (no "Not TLS data or unknown version" lines).

Assisted-by: Claude:claude-opus-4-8

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Frederik Wedel-Heinen <fwh.openssl@gmail.com>
MergeDate: Mon Jul 20 09:09:07 2026
(Merged from https://github.com/openssl/openssl/pull/31994)
2026-07-20 11:08:51 +02:00
..
app_libctx.c 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
app_params.c apps: fix printf formats according to param types 2026-06-01 08:57:22 +02:00
app_provider.c apps: unload provider on app_provider_load() failure 2026-03-13 09:09:38 +01:00
app_rand.c Copyright year updates 2026-03-10 14:37:52 +00:00
app_x509.c Copyright year updates 2026-03-10 14:37:52 +00:00
apps.c Convert internal use of ASN1_STRING_set and ASN1_STRING_length 2026-07-18 15:01:13 +02:00
apps_opt_printf.c 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
apps_ui.c Copyright year updates 2026-03-10 14:37:52 +00:00
build.info apps/: Remove engines 2025-12-04 07:31:05 -05:00
cmp_mock_srv.c Convert internal use of ASN1_STRING_set and ASN1_STRING_length 2026-07-18 15:01:13 +02:00
columns.c 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
fmt.c
http_server.c 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
log.c Copyright year updates 2026-03-10 14:37:52 +00:00
names.c Copyright year updates 2026-03-10 14:37:52 +00:00
opt.c Drop Windows CE support. 2026-06-25 09:26:55 +02:00
s_cb.c apps: decode DTLSv1.2 records in s_client/s_server -msg output 2026-07-20 11:08:51 +02:00
s_socket.c Copyright year updates 2026-03-10 14:37:52 +00:00
tlssrp_depr.c apps/lib/tlssrp_depr.c: fix leak of vb in set_up_srp_verifier_file() 2026-05-13 09:20:47 +02:00
vms_decc_argv.c 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
vms_term_sock.c Remove parentheses around return arguments 2026-07-08 12:08:25 +02:00
win32_init.c Fix missing prototype for win32_utf8argv under MINGW64 2026-04-30 13:41:56 +02:00