NLSR - (Hello Protocol + FIB Update)
diff --git a/src/security/nlsr_cse.hpp b/src/security/nlsr_cse.hpp
index 27b992a..f91e9e2 100644
--- a/src/security/nlsr_cse.hpp
+++ b/src/security/nlsr_cse.hpp
@@ -7,60 +7,60 @@
namespace nlsr
{
- class NlsrCertificateStoreEntry
+ class NlsrCertificateStoreEntry
+ {
+ public:
+ NlsrCertificateStoreEntry()
+ : cert(ndn::make_shared<ndn::IdentityCertificate>())
+ , certSeqNum(0)
+ , isSignerVerified(false)
+ {}
+
+ NlsrCertificateStoreEntry(ndn::shared_ptr<ndn::IdentityCertificate> pcert
+ , uint32_t csn, bool isv)
+ : cert(pcert)
+ , certSeqNum(csn)
+ , isSignerVerified(isv)
+ {}
+
+ ndn::shared_ptr<ndn::IdentityCertificate> getCert() const
{
- public:
- NlsrCertificateStoreEntry()
- : cert(ndn::make_shared<ndn::IdentityCertificate>())
- , certSeqNum(0)
- , isSignerVerified(false)
- {}
-
- NlsrCertificateStoreEntry(ndn::shared_ptr<ndn::IdentityCertificate> pcert
- , uint32_t csn, bool isv)
- : cert(pcert)
- , certSeqNum(csn)
- , isSignerVerified(isv)
- {}
-
- ndn::shared_ptr<ndn::IdentityCertificate> getCert() const
- {
- return cert;
- }
-
- void setCert(ndn::shared_ptr<ndn::IdentityCertificate> pcert)
- {
- cert=pcert;
- }
-
- uint32_t getCertSeqNum() const
- {
- return certSeqNum;
- }
-
- void setCertSeqNum(uint32_t csn)
- {
- certSeqNum=csn;
- }
-
- bool getIsSignerVerified() const
- {
- return isSignerVerified;
- }
-
- void setIsSignerVerified(bool isv)
- {
- isSignerVerified=isv;
- }
-
- private:
- ndn::shared_ptr<ndn::IdentityCertificate> cert;
- uint32_t certSeqNum;
- bool isSignerVerified;
- };
- /* Debugging Purpose */
- std::ostream&
- operator <<(std::ostream& os, const NlsrCertificateStoreEntry& ncse);
+ return cert;
+ }
+
+ void setCert(ndn::shared_ptr<ndn::IdentityCertificate> pcert)
+ {
+ cert=pcert;
+ }
+
+ uint32_t getCertSeqNum() const
+ {
+ return certSeqNum;
+ }
+
+ void setCertSeqNum(uint32_t csn)
+ {
+ certSeqNum=csn;
+ }
+
+ bool getIsSignerVerified() const
+ {
+ return isSignerVerified;
+ }
+
+ void setIsSignerVerified(bool isv)
+ {
+ isSignerVerified=isv;
+ }
+
+ private:
+ ndn::shared_ptr<ndn::IdentityCertificate> cert;
+ uint32_t certSeqNum;
+ bool isSignerVerified;
+ };
+ /* Debugging Purpose */
+ std::ostream&
+ operator <<(std::ostream& os, const NlsrCertificateStoreEntry& ncse);
}
#endif