security: Adjust unlocking TPM process.
Change-Id: Iee8787bb9aaa8e05fab9544bd35ce9fe31eecf29
diff --git a/tools/ndnsec-certgen.cpp b/tools/ndnsec-certgen.cpp
index 8b3f21e..e40e392 100644
--- a/tools/ndnsec-certgen.cpp
+++ b/tools/ndnsec-certgen.cpp
@@ -268,6 +268,7 @@
revocationCert.setName(certName);
KeyChain keyChain;
+
Name signingCertificateName = keyChain.getDefaultCertificateNameForIdentity(Name(signId));
keyChain.sign (revocationCert, signingCertificateName);
diff --git a/tools/ndnsec-dump-certificate.cpp b/tools/ndnsec-dump-certificate.cpp
index d3936ec..bb322d0 100644
--- a/tools/ndnsec-dump-certificate.cpp
+++ b/tools/ndnsec-dump-certificate.cpp
@@ -131,7 +131,7 @@
}
KeyChain keyChain;
- ptr_lib::shared_ptr<IdentityCertificate> certificate;
+ shared_ptr<IdentityCertificate> certificate;
try{
if(isIdentityName || isKeyName || isCertName)