Remove DOWNLOAD step
Change-Id: Ia4c4e2aad1afbea273b94abab4670b80fd75cedd
diff --git a/tools/ndncert-client.cpp b/tools/ndncert-client.cpp
index 0154ea0..bc9182f 100644
--- a/tools/ndncert-client.cpp
+++ b/tools/ndncert-client.cpp
@@ -116,13 +116,9 @@
}
static void
-downloadCb(const Data& reply)
+certFetchCb(const Data& reply)
{
- auto cert = client.onDownloadResponse(reply);
- if (cert == nullptr) {
- std::cerr << "Certificate cannot be installed to your local keychain" << std::endl;
- return;
- }
+ client.onCertFetchResponse(reply);
std::cerr << "Step " << nStep++
<< ": DONE! Certificate has already been installed to local keychain\n"
<< "Certificate Name: " << cert->getName().toUri() << std::endl;
@@ -134,7 +130,7 @@
client.onChallengeResponse(reply);
if (client.getApplicationStatus() == STATUS_SUCCESS) {
std::cerr << "DONE! Certificate has already been issued \n";
- face.expressInterest(*client.generateDownloadInterest(), bind(&downloadCb, _2),
+ face.expressInterest(*client.generateCertFetchInterest(), bind(&certFetchCb, _2),
bind(&onNackCb), bind(&timeoutCb));
return;
}