diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-08-23 11:52:10 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-08-23 11:52:10 -0700 |
| commit | 68b4ca9b3181e69108bb4120c1c4230e3d09293b (patch) | |
| tree | 169545591184606f83fa80dde734050af61e7e99 /node/NetworkConfig.cpp | |
| parent | 0dfc08b31724fe42ad7dc6253b3b673aec90c838 (diff) | |
| download | infinitytier-68b4ca9b3181e69108bb4120c1c4230e3d09293b.tar.gz infinitytier-68b4ca9b3181e69108bb4120c1c4230e3d09293b.zip | |
Cleanup.
Diffstat (limited to 'node/NetworkConfig.cpp')
| -rw-r--r-- | node/NetworkConfig.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/node/NetworkConfig.cpp b/node/NetworkConfig.cpp index 14ebb209..0c9c05ca 100644 --- a/node/NetworkConfig.cpp +++ b/node/NetworkConfig.cpp @@ -179,18 +179,8 @@ bool NetworkConfig::toDictionary(Dictionary<ZT_NETWORKCONFIG_DICT_CAPACITY> &d,b return true; } -bool NetworkConfig::fromDictionary(const Identity &controllerId,Dictionary<ZT_NETWORKCONFIG_DICT_CAPACITY> &d) +bool NetworkConfig::fromDictionary(const Dictionary<ZT_NETWORKCONFIG_DICT_CAPACITY> &d) { - if ((d.contains(ZT_NETWORKCONFIG_DICT_KEY_SIGNATURE))&&(controllerId)) { - // FIXME: right now signature are optional since network configs are only - // accepted directly from the controller and the protocol already guarantees - // the sender. In the future these might be made non-optional once old - // controllers that do not sign are gone and if we ever support peer caching - // of network configs. - if (!d.unwrapAndVerify(ZT_NETWORKCONFIG_DICT_KEY_SIGNATURE,controllerId.publicKey())) - return false; - } - Buffer<ZT_NETWORKCONFIG_DICT_CAPACITY> *tmp = new Buffer<ZT_NETWORKCONFIG_DICT_CAPACITY>(); try { |
