dep-openssl/apps
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
..
demoSRP Fix grammar in srp_verifier.txt 2024-04-25 11:07:20 +02:00
include apps/cmp.c: fix use of SSL_set_tlsext_host_name() for SNI and X509_VERIFY_PARAM_set1_host() 2026-06-10 08:26:54 +02:00
lib apps: decode DTLSv1.2 records in s_client/s_server -msg output 2026-07-20 11:08:51 +02:00
asn1parse.c Convert internal use of ASN1_STRING_set and ASN1_STRING_length 2026-07-18 15:01:13 +02:00
build.info ECH build artefacts and a bit of code 2026-02-20 16:40:25 +00:00
ca-cert.srl
ca-key.pem
ca-req.pem
ca.c Convert internal use of ASN1_STRING_set and ASN1_STRING_length 2026-07-18 15:01:13 +02:00
CA.pl.in Copyright year updates 2025-09-02 13:05:45 +00:00
cert.pem
ciphers.c Copyright year updates 2026-03-10 14:37:52 +00:00
client.pem
cmp.c Convert internal use of ASN1_STRING_set and ASN1_STRING_length 2026-07-18 15:01:13 +02:00
cms.c Convert internal use of ASN1_STRING_set and ASN1_STRING_length 2026-07-18 15:01:13 +02:00
configutl.c Copyright year updates 2026-03-10 14:37:52 +00:00
crl.c apps/*.c,doc/man1/*.pod.in: fix doc and error output of cert_store vs. chain_store/verify_store and PEM format 2026-06-01 06:57:07 +02:00
crl2pkcs7.c Copyright year updates 2026-03-10 14:37:52 +00:00
ct_log_list.cnf
dgst.c apps/dgst: avoid EXIT_* helper returns and format changes 2026-06-15 16:32:25 +02:00
dhparam.c Copyright year updates 2026-03-10 14:37:52 +00:00
dsa-ca.pem
dsa-pca.pem
dsa.c Copyright year updates 2026-03-10 14:37:52 +00:00
dsa512.pem
dsa1024.pem
dsap.pem
dsaparam.c Copyright year updates 2026-03-10 14:37:52 +00:00
ec.c EC: make the group the single source of the point conversion form 2026-07-10 11:21:28 +02:00
ech.c Copyright year updates 2026-03-10 14:37:52 +00:00
ecparam.c EC: make the group the single source of the point conversion form 2026-07-10 11:21:28 +02:00
enc.c apps: fix printf formats according to param types 2026-06-01 08:57:22 +02:00
errstr.c 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
fipsinstall.c Copyright year updates 2026-03-10 14:37:52 +00:00
gendsa.c Copyright year updates 2026-03-10 14:37:52 +00:00
genpkey.c Copyright year updates 2026-03-10 14:37:52 +00:00
genrsa.c Copyright year updates 2026-03-10 14:37:52 +00:00
info.c 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
insta.ca.crt
kdf.c apps : enforce command-line parameter checking. 2026-04-13 11:30:19 +02:00
list.c feat: Disabled features are generated during configure automatically 2026-03-13 16:52:12 +01:00
mac.c Copyright year updates 2026-03-10 14:37:52 +00:00
nseq.c 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
ocsp.c apps/ocsp.c: guard index_changed() with OPENSSL_NO_POSIX_IO, not HTTP_DAEMON 2026-07-08 11:42:37 +02:00
openssl-vms.cnf Remove unused crl_dir setting from config files 2026-06-03 13:36:56 +02:00
openssl.c Copyright year updates 2026-03-10 14:37:52 +00:00
openssl.cnf Remove unused crl_dir setting from config files 2026-06-03 13:36:56 +02:00
passwd.c Copyright year updates 2026-03-10 14:37:52 +00:00
pca-cert.srl
pca-key.pem
pca-req.pem
pkcs7.c Copyright year updates 2026-03-10 14:37:52 +00:00
pkcs8.c Copyright year updates 2026-03-10 14:37:52 +00:00
pkcs12.c Convert internal use of ASN1_STRING_set and ASN1_STRING_length 2026-07-18 15:01:13 +02:00
pkey.c EC: make the group the single source of the point conversion form 2026-07-10 11:21:28 +02:00
pkeyparam.c Copyright year updates 2026-03-10 14:37:52 +00:00
pkeyutl.c apps: remove atoi() calls. 2026-04-13 11:29:19 +02:00
prime.c apps: remove atoi() calls. 2026-04-13 11:29:19 +02:00
privkey.pem
progs.pl Fix progs.pl to generate guarded header 2026-05-06 13:35:24 +02:00
rand.c Add -n option to openssl-rand to not output the trailing newline 2026-07-02 12:59:24 +02:00
rehash.c apps/rehash.c: reading cert/CRL from PEM file gets no more confused by any included private keys 2026-06-01 06:57:07 +02:00
req.c Fix doubled semicolons as statement terminations 2026-07-08 20:03:06 +02:00
req.pem
rsa.c Copyright year updates 2026-03-10 14:37:52 +00:00
rsa8192.pem
rsautl.c Copyright year updates 2026-03-10 14:37:52 +00:00
s512-key.pem
s512-req.pem
s1024key.pem
s1024req.pem
s_client.c Convert internal use of ASN1_STRING_set and ASN1_STRING_length 2026-07-18 15:01:13 +02:00
s_server.c Eliminate unnecessary whitespace before a quoted newline 2026-07-08 12:10:54 +02:00
s_time.c Fix duplicate CAstore option in s_time app 2026-06-15 15:53:26 +02:00
server.pem
server.srl
server2.pem
sess_id.c Copyright year updates 2026-03-10 14:37:52 +00:00
skeyutl.c Fix app param memory cleaning 2026-05-18 13:12:27 +02:00
smime.c apps/*.c,doc/man1/*.pod.in: fix doc and error output of cert_store vs. chain_store/verify_store and PEM format 2026-06-01 06:57:07 +02:00
speed.c Fix typos 2026-07-08 12:45:09 +02:00
spkac.c Convert internal use of ASN1_STRING_set and ASN1_STRING_length 2026-07-18 15:01:13 +02:00
srp.c Copyright year updates 2026-03-10 14:37:52 +00:00
storeutl.c Copyright year updates 2026-03-10 14:37:52 +00:00
testCA.pem
testdsa.h Fix broken hex data by reformatting 2026-06-03 09:46:03 +02:00
testrsa.h Fix broken hex data by reformatting 2026-06-03 09:46:03 +02:00
timeouts.h 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
ts.c Convert internal use of ASN1_STRING_set and ASN1_STRING_length 2026-07-18 15:01:13 +02:00
tsget.in
verify.c apps/*.c,doc/man1/*.pod.in: fix doc and error output of cert_store vs. chain_store/verify_store and PEM format 2026-06-01 06:57:07 +02:00
version.c 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
vms_decc_init.c 4.0-POST-CLANG-FORMAT-WEBKIT 2025-12-09 00:28:19 -07:00
x509.c Deprecate the X509_check_{email,host,ip,ip_asc} family of functions 2026-05-11 02:05:22 +02:00