]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Add test for recordpadding
authorNeil Horman <nhorman@openssl.org>
Thu, 6 Nov 2025 14:38:17 +0000 (09:38 -0500)
committerTomas Mraz <tomas@openssl.org>
Fri, 21 Nov 2025 13:28:32 +0000 (14:28 +0100)
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)

test/default-recordpadding.cnf [new file with mode: 0644]
test/recipes/75-test_quicapi.t

diff --git a/test/default-recordpadding.cnf b/test/default-recordpadding.cnf
new file mode 100644 (file)
index 0000000..a948e43
--- /dev/null
@@ -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
index e1ce5eabb291b9abf51a472f0efd715c4b38b0d4..7056ad17b0f9f2440741bac9753cee1db4e90322 100644 (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");