summaryrefslogtreecommitdiff
path: root/node/Dictionary.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-08 15:26:45 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-08 15:26:45 -0700
commitbf2ff964e14c022aa4c10849cb4421ee9a710d40 (patch)
tree85aa082421e0300305e6d29434e4545b54811805 /node/Dictionary.cpp
parentee2f51f48e3e73fb46c36d27fe4cbf9a1e0c427d (diff)
downloadinfinitytier-bf2ff964e14c022aa4c10849cb4421ee9a710d40.tar.gz
infinitytier-bf2ff964e14c022aa4c10849cb4421ee9a710d40.zip
Utils::now() removal and a bunch of compile fixes.
Diffstat (limited to 'node/Dictionary.cpp')
-rw-r--r--node/Dictionary.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Dictionary.cpp b/node/Dictionary.cpp
index b702e5db..b3b01525 100644
--- a/node/Dictionary.cpp
+++ b/node/Dictionary.cpp
@@ -75,13 +75,13 @@ void Dictionary::fromString(const char *s,unsigned int maxlen)
(*this)[keyBuf];
}
-bool Dictionary::sign(const Identity &id)
+bool Dictionary::sign(const Identity &id,uint64_t now)
{
try {
// Sign identity and timestamp fields too. If there's an existing
// signature, _mkSigBuf() ignores it.
char nows[32];
- Utils::snprintf(nows,sizeof(nows),"%llx",(unsigned long long)Utils::now());
+ Utils::snprintf(nows,sizeof(nows),"%llx",(unsigned long long)now);
(*this)[ZT_DICTIONARY_SIGNATURE_IDENTITY] = id.toString(false);
(*this)[ZT_DICTIONARY_SIGNATURE_TIMESTAMP] = nows;