diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-24 16:07:50 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-24 16:07:50 +0200 |
commit | 1ae3aae35193dce25e5534b12a46011ec7912bb4 (patch) | |
tree | 85d452b2a9cc23f081de7b2f3054801d6d9ea554 /src/protocols/ec25519_fhmqvc/state.c | |
parent | 4c0623a080c77ed54fa9fec47c2ab982385cb9a9 (diff) | |
download | fastd-1ae3aae35193dce25e5534b12a46011ec7912bb4.tar fastd-1ae3aae35193dce25e5534b12a46011ec7912bb4.zip |
Use simple int64_t timestamps in ms instead of timespecs
Diffstat (limited to 'src/protocols/ec25519_fhmqvc/state.c')
-rw-r--r-- | src/protocols/ec25519_fhmqvc/state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/ec25519_fhmqvc/state.c b/src/protocols/ec25519_fhmqvc/state.c index d4a2a0e..79bb6e2 100644 --- a/src/protocols/ec25519_fhmqvc/state.c +++ b/src/protocols/ec25519_fhmqvc/state.c @@ -72,8 +72,8 @@ void fastd_protocol_ec25519_fhmqvc_maintenance(void) { new_handshake_key(&ctx.protocol_state->handshake_key.key); - ctx.protocol_state->handshake_key.preferred_till = fastd_in_seconds(15); - ctx.protocol_state->handshake_key.valid_till = fastd_in_seconds(30); + ctx.protocol_state->handshake_key.preferred_till = ctx.now + 15000; + ctx.protocol_state->handshake_key.valid_till = ctx.now + 30000; } } |