diff options
-rw-r--r-- | src/lib/ffi/ffi.cpp | 8 | ||||
-rw-r--r-- | src/lib/pubkey/pk_algs.cpp | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/lib/ffi/ffi.cpp b/src/lib/ffi/ffi.cpp index 94e83122e..9442634c4 100644 --- a/src/lib/ffi/ffi.cpp +++ b/src/lib/ffi/ffi.cpp @@ -1449,15 +1449,15 @@ int botan_pubkey_load(botan_pubkey_t* key, } int botan_privkey_load_rsa(botan_privkey_t* key, - botan_mp_t p, botan_mp_t q, botan_mp_t e) + botan_mp_t rsa_p, botan_mp_t rsa_q, botan_mp_t rsa_e) { #if defined(BOTAN_HAS_RSA) *key = nullptr; try { - *key = new botan_privkey_struct(new Botan::RSA_PrivateKey(safe_get(p), - safe_get(q), - safe_get(e))); + *key = new botan_privkey_struct(new Botan::RSA_PrivateKey(safe_get(rsa_p), + safe_get(rsa_q), + safe_get(rsa_e))); return 0; } catch(std::exception& e) diff --git a/src/lib/pubkey/pk_algs.cpp b/src/lib/pubkey/pk_algs.cpp index 19d7361b4..52e2e3be9 100644 --- a/src/lib/pubkey/pk_algs.cpp +++ b/src/lib/pubkey/pk_algs.cpp @@ -324,6 +324,8 @@ create_private_key(const std::string& alg_name, } #endif + BOTAN_UNUSED(alg_name, rng, provider); + return std::unique_ptr<Private_Key>(); } @@ -343,6 +345,9 @@ probe_provider_private_key(const std::string& alg_name, providers.push_back(prov); // available } } + + BOTAN_UNUSED(alg_name); + return providers; } } |