From eddd97fbabd267232e320d77755a1e0ff81fc644 Mon Sep 17 00:00:00 2001 From: Carlo Teubner Date: Mon, 18 Apr 2022 09:54:46 +0100 Subject: [PATCH] Fix Botan deprecation warning Use the non-deprecated PK_Signer constructor overload, by explicitly passing in our random-number generator. --- src/keeshare/ShareExport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keeshare/ShareExport.cpp b/src/keeshare/ShareExport.cpp index d43ef73cb..670a2911e 100644 --- a/src/keeshare/ShareExport.cpp +++ b/src/keeshare/ShareExport.cpp @@ -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(data.constData()), data.size()); auto s = signer.signature(*randomGen()->getRng());