mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 08:19:47 -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") {
|
if (key.key->algo_name() == "RSA") {
|
||||||
try {
|
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());
|
signer.update(reinterpret_cast<const uint8_t*>(data.constData()), data.size());
|
||||||
auto s = signer.signature(*randomGen()->getRng());
|
auto s = signer.signature(*randomGen()->getRng());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user