From 73c2605f50e6192bf6cb560c51d32bc53b4c5597 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 31 Oct 2016 02:25:29 -0400 Subject: Avoid possibility of mismatched brackets. Found by cppcheck --- src/lib/prov/openssl/openssl_ec.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/lib/prov/openssl') 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 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: -- cgit v1.2.3