summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-03-08 17:03:32 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-03-08 17:03:32 -0800
commit6d6719da27ea966fed564bc23e57c75669758151 (patch)
tree5aea3a43cd4e8e6e0b09af0152ec652de4ad2882
parent20085cd15b9a708fcda1f8202182fa753ae0bd6c (diff)
downloadinfinitytier-6d6719da27ea966fed564bc23e57c75669758151.tar.gz
infinitytier-6d6719da27ea966fed564bc23e57c75669758151.zip
Clarify key semantics.
-rw-r--r--README.md4
-rw-r--r--one.cpp10
2 files changed, 9 insertions, 5 deletions
diff --git a/README.md b/README.md
index 49feac68..47bfc878 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,9 @@
ZeroTier - A Planetary Ethernet Switch
======
-ZeroTier is an advanced SDN Ethernet switch for planet Earth. It erases the LAN/WAN distinction and makes VPNs, tunnels, proxies, and other kludges arising from the inflexible nature of physical networks obsolete. Everything is encrypted end-to-end and traffic takes the most direct (peer to peer) path available.
+ZeroTier is an enterprise Ethernet switch for planet Earth.
+
+It erases the LAN/WAN distinction and makes VPNs, tunnels, proxies, and other kludges arising from the inflexible nature of physical networks obsolete. Everything is encrypted end-to-end and traffic takes the most direct (peer to peer) path available.
Visit [ZeroTier's site](https://www.zerotier.com/) for more information and [pre-built binary packages](https://www.zerotier.com/download.shtml). Apps for Android and iOS are available for free in the Google Play and Apple app stores.
diff --git a/one.cpp b/one.cpp
index b64016fb..f704f7ef 100644
--- a/one.cpp
+++ b/one.cpp
@@ -787,7 +787,7 @@ static int idtool(int argc,char **argv)
mj["objtype"] = "world";
mj["worldType"] = "moon";
mj["updatesMustBeSignedBy"] = mj["signingKey"] = Utils::hex(kp.pub.data,(unsigned int)kp.pub.size());
- mj["updatesMustBeSignedBy_SECRET"] = Utils::hex(kp.priv.data,(unsigned int)kp.priv.size());
+ mj["signingKey_SECRET"] = Utils::hex(kp.priv.data,(unsigned int)kp.priv.size());
mj["id"] = id.address().toString();
nlohmann::json seedj;
seedj["identity"] = id.toString(false);
@@ -825,8 +825,10 @@ static int idtool(int argc,char **argv)
}
C25519::Pair signingKey;
- Utils::unhex(OSUtils::jsonString(mj["updatesMustBeSignedBy"],""),signingKey.pub.data,(unsigned int)signingKey.pub.size());
- Utils::unhex(OSUtils::jsonString(mj["updatesMustBeSignedBy_SECRET"],""),signingKey.priv.data,(unsigned int)signingKey.priv.size());
+ C25519::Public updatesMustBeSignedBy;
+ Utils::unhex(OSUtils::jsonString(mj["signingKey"],""),signingKey.pub.data,(unsigned int)signingKey.pub.size());
+ Utils::unhex(OSUtils::jsonString(mj["signingKey_SECRET"],""),signingKey.priv.data,(unsigned int)signingKey.priv.size());
+ Utils::unhex(OSUtils::jsonString(mj["updatesMustBeSignedBy"],""),updatesMustBeSignedBy.data,(unsigned int)updatesMustBeSignedBy.size());
std::vector<World::Root> roots;
nlohmann::json &rootsj = mj["roots"];
@@ -848,7 +850,7 @@ static int idtool(int argc,char **argv)
std::sort(roots.begin(),roots.end());
const uint64_t now = OSUtils::now();
- World w(World::make(t,id,now,signingKey.pub,roots,signingKey));
+ World w(World::make(t,id,now,updatesMustBeSignedBy,roots,signingKey));
Buffer<ZT_WORLD_MAX_SERIALIZED_LENGTH> wbuf;
w.serialize(wbuf);
char fn[128];