summaryrefslogtreecommitdiffstats
path: root/test/property_test.c
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2023-09-25 09:34:07 +1000
committerPauli <pauli@openssl.org>2023-10-05 08:09:13 +1100
commitfb20e66c6b2651067f50bab8cf098c71e2caed4b (patch)
tree61ec41e11c16b0673b6f92eb616ea6abebf7b8f6 /test/property_test.c
parent456e6ca5d73972cdb4228e6c5ec9acdf19237308 (diff)
ossl_property_list_to_string: handle quoted strings
ossl_property_list_to_string() didn't quote strings correctly which could result in a generated property string being unparsable. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22182)
Diffstat (limited to 'test/property_test.c')
-rw-r--r--test/property_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/property_test.c b/test/property_test.c
index 45b1db3e85..bba96fac0a 100644
--- a/test/property_test.c
+++ b/test/property_test.c
@@ -645,6 +645,9 @@ static struct {
{ "", "" },
{ "fips=3", "fips=3" },
{ "fips=-3", "fips=-3" },
+ { "provider='foo bar'", "provider='foo bar'" },
+ { "provider=\"foo bar'\"", "provider=\"foo bar'\"" },
+ { "provider=abc***", "provider='abc***'" },
{ NULL, "" }
};