diff options
author | Pauli <pauli@openssl.org> | 2023-09-25 09:34:07 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-10-05 08:09:13 +1100 |
commit | fb20e66c6b2651067f50bab8cf098c71e2caed4b (patch) | |
tree | 61ec41e11c16b0673b6f92eb616ea6abebf7b8f6 /test | |
parent | 456e6ca5d73972cdb4228e6c5ec9acdf19237308 (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')
-rw-r--r-- | test/property_test.c | 3 |
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, "" } }; |