Fix Botan deprecation warning

Use the non-deprecated PK_Signer constructor overload, by explicitly
passing in our random-number generator.
This commit is contained in:
Carlo Teubner authored and Jonathan White committed 2023-05-14 12:10:53 -04:00
1 parent 53f88b93fb
commit eddd97fbab
1 file changed
+1 -1
+1 -1
View File
@@ -141,7 +141,7 @@ namespace
{
if (key.key->algo_name() == "RSA") {
try {
Botan::PK_Signer signer(*key.key, "EMSA3(SHA-256)");
Botan::PK_Signer signer(*key.key, *randomGen()->getRng(), "EMSA3(SHA-256)");
signer.update(reinterpret_cast<const uint8_t*>(data.constData()), data.size());
auto s = signer.signature(*randomGen()->getRng());