Add test for recordpadding

Just run the quicapitest (which attempts to create quic connections)
while using a config that specifies recordpadding, which quic should
ignore

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28992)
This commit is contained in:
Neil Horman
2025-11-06 09:38:17 -05:00
committed by Tomas Mraz
parent 4d33baf565
commit 3d7f4eb35b
2 changed files with 28 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
openssl_conf = openssl_init
# Comment out the next line to ignore configuration errors
config_diagnostics = 1
[openssl_init]
providers = provider_sect
ssl_conf = ssl_section
[ssl_section]
system_default = system_default_section
# Set block and record padding
# Note: QUIC objects should ignore this, as they
# always pad during datagram encryption
[system_default_section]
RecordPadding = 128,256
[provider_sect]
default = default_sect
legacy = legacy_sect
[default_sect]
activate = true
[legacy_sect]
activate = false

View File

@@ -30,7 +30,7 @@ plan tests =>
+ 1; # quicapitest with default provider
ok(run(test(["quicapitest", "default",
srctop_file("test", "default.cnf"),
srctop_file("test", "default-recordpadding.cnf"),
srctop_dir("test", "certs"),
srctop_dir("test", "recipes", "75-test_quicapi_data")])),
"running quicapitest");