aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-08-13 04:09:33 -0400
committerJack Lloyd <[email protected]>2017-08-13 04:09:33 -0400
commit1b1ba82d317528314ab679dd9b8aeb004d6f201e (patch)
tree565186a77c9bfbfa56f887a535fb6e3325812ff5 /src/lib
parent31a47008a636347b824b035b3765973e3f3994ca (diff)
parent38bc7ce3826226822e0580e2f66eda22d8172404 (diff)
Merge GH #1150 Silence clang warning in create_private_key()
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/pubkey/pk_algs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/pk_algs.cpp b/src/lib/pubkey/pk_algs.cpp
index e696b5e74..743918923 100644
--- a/src/lib/pubkey/pk_algs.cpp
+++ b/src/lib/pubkey/pk_algs.cpp
@@ -276,7 +276,7 @@ create_private_key(const std::string& alg_name,
if(provider.empty() || provider == "openssl")
{
std::unique_ptr<Botan::Private_Key> pk;
- if(pk = make_openssl_rsa_private_key(rng, rsa_bits))
+ if((pk = make_openssl_rsa_private_key(rng, rsa_bits)))
return pk;
if(!provider.empty())