mirror of
https://github.com/openssl/openssl.git
synced 2026-01-18 17:11:31 +01:00
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:
27
test/default-recordpadding.cnf
Normal file
27
test/default-recordpadding.cnf
Normal 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
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user