security: Continue porting security elements to the updated framework
Change-Id: I682156142a8714b2756ca429903a19d2b9064e13
diff --git a/src/security/key-chain.cpp b/src/security/key-chain.cpp
index 017a462..ba9060d 100644
--- a/src/security/key-chain.cpp
+++ b/src/security/key-chain.cpp
@@ -62,17 +62,6 @@
// #endif
}
-void
-KeyChain::sign(Data& data, const Name& certificateName)
-{
- identities().signByCertificate(data, certificateName);
-}
-
-Signature
-KeyChain::sign(const uint8_t* buffer, size_t bufferLength, const Name& certificateName)
-{
- return identities().signByCertificate(buffer, bufferLength, certificateName);
-}
void
KeyChain::signByIdentity(Data& data, const Name& identityName)
@@ -95,7 +84,7 @@
if (!policyManager_->checkSigningPolicy(data.getName(), signingCertificateName))
throw Error("Signing Cert name does not comply with signing policy");
- identities().signByCertificate(data, signingCertificateName);
+ identities().signByCertificate(data, signingCertificateName);
}
Signature