simplify client new/revoke
Change-Id: Ieffad88163393ec6f5a1e04e200df524dbf2c447
diff --git a/tests/unit-tests/ca-module.t.cpp b/tests/unit-tests/ca-module.t.cpp
index 4f2c092..f3fde9d 100644
--- a/tests/unit-tests/ca-module.t.cpp
+++ b/tests/unit-tests/ca-module.t.cpp
@@ -201,7 +201,7 @@
BOOST_CHECK(challengeBlockCount != 0);
- client.onNewResponse(response);
+ client.onNewRenewRevokeResponse(response);
BOOST_CHECK_EQUAL_COLLECTIONS(client.m_aesKey, client.m_aesKey + sizeof(client.m_aesKey),
ca.m_aesKey, ca.m_aesKey + sizeof(ca.m_aesKey));
});
@@ -364,7 +364,7 @@
int count = 0;
face.onSendData.connect([&](const Data& response) {
if (Name("/ndn/CA/NEW").isPrefixOf(response.getName())) {
- client.onNewResponse(response);
+ client.onNewRenewRevokeResponse(response);
auto paramList = pinChallenge.getRequestedParameterList(client.m_status, client.m_challengeStatus);
challengeInterest = client.generateChallengeInterest(pinChallenge.genChallengeRequestTLV(client.m_status,
client.m_challengeStatus,
@@ -472,7 +472,7 @@
BOOST_CHECK(challengeBlockCount != 0);
- client.onRevokeResponse(response);
+ client.onNewRenewRevokeResponse(response);
BOOST_CHECK_EQUAL_COLLECTIONS(client.m_aesKey, client.m_aesKey + sizeof(client.m_aesKey),
ca.m_aesKey, ca.m_aesKey + sizeof(ca.m_aesKey));
});