ccnx: Make verifier thread-safe; use it in ccnx-wrapper
Change-Id: I5ba3d2565921c461cabe912fb86504bc36b6a69f
diff --git a/ccnx/ccnx-wrapper.h b/ccnx/ccnx-wrapper.h
index 914293c..5367fbb 100644
--- a/ccnx/ccnx-wrapper.h
+++ b/ccnx/ccnx-wrapper.h
@@ -37,6 +37,7 @@
struct CcnxOperationException : boost::exception, std::exception { };
+class Verifier;
class CcnxWrapper
{
public:
@@ -95,6 +96,9 @@
bool
checkPcoIntegrity(PcoPtr &pco);
+ bool
+ verifyKey(PcoPtr &pco);
+
PcoPtr
get (const Name &interest, const Selectors &selector = Selectors(), double maxWait = 4.0/*seconds*/);
@@ -126,6 +130,7 @@
bool m_connected;
std::map<Name, InterestCallback> m_registeredInterests;
ExecutorPtr m_executor;
+ Verifier *m_verifier;
};
typedef boost::shared_ptr<CcnxWrapper> CcnxWrapperPtr;