Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
Fix for wrong length in response from server
· afcc8cd2
Hal Murray
authored
Mar 23, 2019
afcc8cd2
Add strerror to the multi-thread msyslog list
· 760dbaee
Hal Murray
authored
Mar 23, 2019
760dbaee
Hide whitespace changes
Inline
Side-by-side
devel/TODO-NTS
View file @
760dbaee
multithread msyslog
libntp/lib_strbuf.c too
strerror
documentation:
HOWTO on NTS
...
...
ntpd/nts_extens.c
View file @
760dbaee
...
...
@@ -265,7 +265,7 @@ int extens_server_send(struct ntspacket_t *ntspacket, struct pkt *xpkt) {
aeadlen
=
NTP_EX_U16_LNG
*
2
+
NONCE_LENGTH
+
CMAC_LENGTH
+
plainleng
;
ex_append_header
(
&
buf
,
NTS_AEEF
,
aeadlen
);
append_uint16
(
&
buf
,
NONCE_LENGTH
);
append_uint16
(
&
buf
,
plainleng
);
append_uint16
(
&
buf
,
plainleng
+
CMAC_LENGTH
);
nonce
=
buf
.
next
;
RAND_bytes
(
nonce
,
NONCE_LENGTH
);
...
...