aboutsummaryrefslogtreecommitdiff
path: root/openssl/agent/pkcs11/url.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-07-13 12:41:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-07-13 12:41:13 +0200
commit0ea69b738f1ff52baf370c3c5d3e2452571793e6 (patch)
treef7114bbbaa75069c3a9bc2a079e1f1fd59c6e359 /openssl/agent/pkcs11/url.cxx
parent7a760e31440ad49039e6b416a30465efc6047407 (diff)
Work around bogus -Wrestrict GCC 12 warning (bug #105329)
Diffstat (limited to 'openssl/agent/pkcs11/url.cxx')
-rw-r--r--openssl/agent/pkcs11/url.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/openssl/agent/pkcs11/url.cxx b/openssl/agent/pkcs11/url.cxx
index 0c946d9..8823480 100644
--- a/openssl/agent/pkcs11/url.cxx
+++ b/openssl/agent/pkcs11/url.cxx
@@ -34,7 +34,7 @@ namespace openssl
return v;
}
- throw invalid_argument (string ("invalid ") + what + " '" + s + "'");
+ throw invalid_argument (string ("invalid ") + what + " '" + s + '\'');
}
// url_traits
@@ -134,7 +134,7 @@ namespace openssl
if (i == e)
throw invalid_argument (
- "no value for attribute '" + string (s, b, n) + "'");
+ "no value for attribute '" + string (s, b, n) + '\'');
string a;
url::decode (s.begin () + b, s.begin () + i, back_inserter (a));
@@ -168,7 +168,7 @@ namespace openssl
auto set = [&an] (auto& attr, auto&& val)
{
if (attr)
- throw invalid_argument ("duplicate attribute '" + an + "'");
+ throw invalid_argument ("duplicate attribute '" + an + '\'');
attr = move (val);
};
@@ -213,7 +213,7 @@ namespace openssl
else if (an == "type")
set (type, move (av));
else
- throw invalid_argument ("unknown attribute '" + an + "'");
+ throw invalid_argument ("unknown attribute '" + an + '\'');
}
}
@@ -240,7 +240,7 @@ namespace openssl
auto set = [&an] (auto& attr, auto&& val)
{
if (attr)
- throw invalid_argument ("duplicate attribute '" + an + "'");
+ throw invalid_argument ("duplicate attribute '" + an + '\'');
attr = move (val);
};