src: rename namespace as chronochat
Change-Id: Idf390b1b2047c912735014d078ce099cf95026e6
diff --git a/src/endorse-certificate.cpp b/src/endorse-certificate.cpp
index 8fc8dec..b72d57e 100644
--- a/src/endorse-certificate.cpp
+++ b/src/endorse-certificate.cpp
@@ -13,7 +13,7 @@
#include <boost/iostreams/stream.hpp>
#include <ndn-cxx/encoding/buffer-stream.hpp>
-namespace chronos {
+namespace chronochat {
using std::vector;
using std::string;
@@ -30,8 +30,8 @@
const vector<string> EndorseCertificate::DEFAULT_ENDORSE_LIST;
-Chronos::EndorseExtensionMsg&
-operator<<(Chronos::EndorseExtensionMsg& endorseExtension, const vector<string>& endorseList)
+chronochat::EndorseExtensionMsg&
+operator<<(chronochat::EndorseExtensionMsg& endorseExtension, const vector<string>& endorseList)
{
for (vector<string>::const_iterator it = endorseList.begin(); it != endorseList.end(); it++)
endorseExtension.add_endorseentry()->set_name(*it);
@@ -39,8 +39,8 @@
return endorseExtension;
}
-Chronos::EndorseExtensionMsg&
-operator>>(Chronos::EndorseExtensionMsg& endorseExtension, vector<string>& endorseList)
+chronochat::EndorseExtensionMsg&
+operator>>(chronochat::EndorseExtensionMsg& endorseExtension, vector<string>& endorseList)
{
for (int i = 0; i < endorseExtension.endorseentry_size(); i ++)
endorseList.push_back(endorseExtension.endorseentry(i).name());
@@ -72,7 +72,7 @@
addExtension(CertificateExtension(PROFILE_EXT_OID, true, *profileStream.buf()));
OBufferStream endorseStream;
- Chronos::EndorseExtensionMsg endorseExtension;
+ chronochat::EndorseExtensionMsg endorseExtension;
endorseExtension << m_endorseList;
endorseExtension.SerializeToOstream(&endorseStream);
addExtension(CertificateExtension(ENDORSE_EXT_OID, true, *endorseStream.buf()));
@@ -103,7 +103,7 @@
addExtension(CertificateExtension(PROFILE_EXT_OID, true, *profileStream.buf()));
OBufferStream endorseStream;
- Chronos::EndorseExtensionMsg endorseExtension;
+ chronochat::EndorseExtensionMsg endorseExtension;
endorseExtension << m_endorseList;
endorseExtension.SerializeToOstream(&endorseStream);
addExtension(CertificateExtension(ENDORSE_EXT_OID, true, *endorseStream.buf()));
@@ -138,7 +138,7 @@
addExtension(CertificateExtension(PROFILE_EXT_OID, true, *profileStream.buf()));
OBufferStream endorseStream;
- Chronos::EndorseExtensionMsg endorseExtension;
+ chronochat::EndorseExtensionMsg endorseExtension;
endorseExtension << m_endorseList;
endorseExtension.SerializeToOstream(&endorseStream);
addExtension(CertificateExtension(ENDORSE_EXT_OID, true, *endorseStream.buf()));
@@ -174,7 +174,7 @@
m_profile.decode(is);
}
if (ENDORSE_EXT_OID == it->getOid()) {
- Chronos::EndorseExtensionMsg endorseExtension;
+ chronochat::EndorseExtensionMsg endorseExtension;
boost::iostreams::stream<boost::iostreams::array_source> is
(reinterpret_cast<const char*>(it->getValue().buf()), it->getValue().size());
@@ -185,4 +185,4 @@
}
}
-} // namespace chronos
+} // namespace chronochat