mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-25 23:39:45 -05: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:
parent
7edeceec03
commit
9bf61bfc5c
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user