diff options
author | Pauli <pauli@openssl.org> | 2023-09-25 09:34:07 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-10-05 08:10:00 +1100 |
commit | fdfc1de2aa206ff10287933e729db892bd545567 (patch) | |
tree | 4eeaf3738ec515996cb3fd7f6db9575fc4eb5d25 /test/property_test.c | |
parent | 9c20f5db0feaddc4c9ea4c4b2b07e6d87d6701f1 (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)
(cherry picked from commit fb20e66c6b2651067f50bab8cf098c71e2caed4b)
Diffstat (limited to 'test/property_test.c')
-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, "" } }; |