mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-25 19:41:37 -08:00
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:
1 parent
53f88b93fb
commit
eddd97fbab
1 file changed
+1
-1
@@ -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());
|
||||
|
||||
|
||||
Reference in new issue
Block a user