diff options
author | Alexander Bluhm <[email protected]> | 2017-08-13 06:33:23 +0200 |
---|---|---|
committer | Alexander Bluhm <[email protected]> | 2017-08-13 06:35:40 +0200 |
commit | 38bc7ce3826226822e0580e2f66eda22d8172404 (patch) | |
tree | 014749f54a42a2edbb18b6f9fcb984981c248644 | |
parent | 33f87a596ffa1fcbc017d9593dce0906d7d32208 (diff) |
Silence clang warning in create_private_key().
If compiled with OpenSSL, clang emitted the warning "using the
result of an assignment as a condition without parentheses". Putting
parentheses around the assignment fixes this.
-rw-r--r-- | src/lib/pubkey/pk_algs.cpp | 2 |
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()) |