1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:07:46 +00:00

ntpquery: Don't leak local time, and check origin time in reply

This implements the transmit time suggestion in (abandoned?)
draft-ietf-ntp-data-minimization. (The other suggestions were already
implemented as far as I can tell.)
This commit is contained in:
Nico Weber 2020-10-16 15:59:53 -04:00 committed by Andreas Kling
parent 019788a150
commit 5f50af3b4f
2 changed files with 14 additions and 2 deletions

View file

@ -62,3 +62,6 @@ inline T get_random()
}
}
using AK::fill_with_random;
using AK::get_random;