security: Support ECDSA verification in all related classes.
This commit also addresses some old issues, such as "using namespace std".
Change-Id: I62b8ff97fb2b6f6cfe04b0ad5866bc0797e6e43b
Refs: #1660
diff --git a/src/security/certificate-extension.cpp b/src/security/certificate-extension.cpp
index 8275941..d215662 100644
--- a/src/security/certificate-extension.cpp
+++ b/src/security/certificate-extension.cpp
@@ -27,14 +27,13 @@
#include "certificate-extension.hpp"
#include "cryptopp.hpp"
-using namespace std;
-using namespace CryptoPP;
-
namespace ndn {
void
CertificateExtension::encode(CryptoPP::BufferedTransformation& out) const
{
+ using namespace CryptoPP;
+
// Extension ::= SEQUENCE {
// extnID OBJECT IDENTIFIER,
// critical BOOLEAN DEFAULT FALSE,
@@ -52,6 +51,8 @@
void
CertificateExtension::decode(CryptoPP::BufferedTransformation& in)
{
+ using namespace CryptoPP;
+
// Extension ::= SEQUENCE {
// extnID OBJECT IDENTIFIER,
// critical BOOLEAN DEFAULT FALSE,