aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/prov/openssl/openssl_ec.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-10-31 02:25:29 -0400
committerJack Lloyd <[email protected]>2016-10-31 02:25:29 -0400
commit73c2605f50e6192bf6cb560c51d32bc53b4c5597 (patch)
tree62ef1376e66e3b32a809b7ba911457b4b7bff5aa /src/lib/prov/openssl/openssl_ec.cpp
parenta9ac6dfcc795b77af868e798e0273ae664616979 (diff)
Avoid possibility of mismatched brackets.
Found by cppcheck
Diffstat (limited to 'src/lib/prov/openssl/openssl_ec.cpp')
-rw-r--r--src/lib/prov/openssl/openssl_ec.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/prov/openssl/openssl_ec.cpp b/src/lib/prov/openssl/openssl_ec.cpp
index f0e70fe56..fe795fcde 100644
--- a/src/lib/prov/openssl/openssl_ec.cpp
+++ b/src/lib/prov/openssl/openssl_ec.cpp
@@ -39,10 +39,10 @@
namespace Botan {
-namespace {
-
#if defined(BOTAN_HAS_ECC_PUBLIC_KEY_CRYPTO)
+namespace {
+
secure_vector<byte> PKCS8_for_openssl(const EC_PrivateKey& ec)
{
const PointGFp& pub_key = ec.public_point();
@@ -85,10 +85,14 @@ int OpenSSL_EC_nid_for(const OID& oid)
return -1;
}
+}
+
#endif
#if defined(BOTAN_HAS_ECDSA) && !defined(OPENSSL_NO_ECDSA)
+namespace {
+
class OpenSSL_ECDSA_Verification_Operation : public PK_Ops::Verification_with_EMSA
{
public: