ccnx: Rename Key to Cert; fix bug with the usage of Hash
Change-Id: Ic7656e6d8d46729d663ccfa5412e78443aff76bc
diff --git a/ccnx/ccnx-verifier.h b/ccnx/ccnx-verifier.h
index 2ee6def..0b1fd84 100644
--- a/ccnx/ccnx-verifier.h
+++ b/ccnx/ccnx-verifier.h
@@ -25,7 +25,7 @@
#include "ccnx-common.h"
#include "ccnx-wrapper.h"
#include "ccnx-name.h"
-#include "ccnx-key.h"
+#include "ccnx-cert.h"
#include "ccnx-pco.h"
#include <map>
@@ -33,7 +33,7 @@
class CcnxWrapper;
-// not thread-safe, don't want to add a mutex for KeyCache
+// not thread-safe, don't want to add a mutex for CertCache
// which increases the possibility of dead-locking
// ccnx-wrapper would take care of thread-safety issue
class Verifier
@@ -49,8 +49,8 @@
private:
CcnxWrapper *m_ccnx;
Hash m_rootKeyDigest;
- typedef std::map<Hash, KeyPtr> KeyCache;
- KeyCache m_keyCache;
+ typedef std::map<Hash, CertPtr> CertCache;
+ CertCache m_certCache;
};
} // Ccnx