summaryrefslogtreecommitdiff
path: root/node/Dictionary.cpp
diff options
context:
space:
mode:
authorKees Bos <k.bos@capitar.com>2015-05-06 12:05:20 +0200
committerKees Bos <k.bos@capitar.com>2015-05-06 12:05:20 +0200
commita425bbc67301bf486fe5b0aba8adb59ae791403e (patch)
tree460b6c5a5c2ed852903fac2a9703c6f06534f79f /node/Dictionary.cpp
parent845955dea53035e8472059ff03feca9f47c0d5fa (diff)
downloadinfinitytier-a425bbc67301bf486fe5b0aba8adb59ae791403e.tar.gz
infinitytier-a425bbc67301bf486fe5b0aba8adb59ae791403e.zip
Renamed supernode to rootserver
Diffstat (limited to 'node/Dictionary.cpp')
-rw-r--r--node/Dictionary.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/node/Dictionary.cpp b/node/Dictionary.cpp
index b3b01525..fb49002a 100644
--- a/node/Dictionary.cpp
+++ b/node/Dictionary.cpp
@@ -32,9 +32,8 @@
namespace ZeroTier {
-void Dictionary::fromString(const char *s,unsigned int maxlen)
+void Dictionary::updateFromString(const char *s,unsigned int maxlen)
{
- clear();
bool escapeState = false;
std::string keyBuf;
std::string *element = &keyBuf;
@@ -75,6 +74,12 @@ void Dictionary::fromString(const char *s,unsigned int maxlen)
(*this)[keyBuf];
}
+void Dictionary::fromString(const char *s,unsigned int maxlen)
+{
+ clear();
+ updateFromString(s,maxlen);
+}
+
bool Dictionary::sign(const Identity &id,uint64_t now)
{
try {