[Git][NTPsec/ntpsec][master] Enforce some read-only access.
Eric S. Raymond
gitlab at mg.gitlab.com
Thu Feb 14 17:25:54 UTC 2019
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
86d1449c by Eric S. Raymond at 2019-02-14T17:25:42Z
Enforce some read-only access.
- - - - -
2 changed files:
- include/ntpd.h
- ntpd/nts.c
Changes:
=====================================
include/ntpd.h
=====================================
@@ -427,7 +427,9 @@ int nts_client_ke_request(struct ntscfg_t *);
int nts_server_ke_verify(struct ntscfg_t *);
int nts_client_ke_verify(struct ntscfg_t *, struct ntsstate_t *);
int nts_daily(struct ntscfg_t *);
-int nts_validate(struct ntscfg_t *, struct ntsstate_t *, struct parsed_pkt *);
-int nts_decorate(struct ntscfg_t *, struct ntsstate_t *, uint32_t *, size_t);
+int nts_validate(const struct ntscfg_t *, struct ntsstate_t *,
+ struct parsed_pkt *);
+int nts_decorate(const struct ntscfg_t *, struct ntsstate_t *,
+ uint32_t *, size_t);
#endif /* GUARD_NTPD_H */
=====================================
ntpd/nts.c
=====================================
@@ -100,7 +100,7 @@ int nts_daily(struct ntscfg_t *cfg)
* there is no per-client server state. A nonzero return causes the
* packet to be discarded.
*/
-int nts_validate(struct ntscfg_t *cfg, struct ntsstate_t *state,
+int nts_validate(const struct ntscfg_t *cfg, struct ntsstate_t *state,
struct parsed_pkt *pkt)
{
UNUSED_ARG(cfg);
@@ -115,7 +115,7 @@ int nts_validate(struct ntscfg_t *cfg, struct ntsstate_t *state,
* the ntscfg and state pointers are expected to be NULL as there
* is no per-client server state. Return the count of words appended.
*/
-int nts_decorate(struct ntscfg_t *cfg, struct ntsstate_t *state,
+int nts_decorate(const struct ntscfg_t *cfg, struct ntsstate_t *state,
uint32_t *extdata, size_t extlen)
{
UNUSED_ARG(cfg);
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/86d1449c4f7209da127c88f1995c6cd2d096a4d9
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/86d1449c4f7209da127c88f1995c6cd2d096a4d9
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20190214/18b2a7ff/attachment-0001.html>
More information about the vc
mailing list