From fdfc1de2aa206ff10287933e729db892bd545567 Mon Sep 17 00:00:00 2001 From: Pauli Date: Mon, 25 Sep 2023 09:34:07 +1000 Subject: 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 Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/22182) (cherry picked from commit fb20e66c6b2651067f50bab8cf098c71e2caed4b) --- test/property_test.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/property_test.c') 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, "" } }; -- cgit v1.2.3