[Git][NTPsec/ntpsec][master] 4 commits: Fix ntps.h guard symbol name to match our conventions

James Browning gitlab at mg.gitlab.com
Wed Jan 30 12:35:28 UTC 2019


James Browning pushed to branch master at NTPsec / ntpsec


Commits:
872c06af by Matt Selsky at 2019-01-30T08:23:09Z
Fix ntps.h guard symbol name to match our conventions

- - - - -
86305b9e by Matt Selsky at 2019-01-30T08:23:09Z
pep8: no tabs for indentation

- - - - -
a82702f0 by Matt Selsky at 2019-01-30T08:25:37Z
Typos in comments

- - - - -
f1c53a99 by Matt Selsky at 2019-01-30T08:25:44Z
Remove trailing spaces

- - - - -


3 changed files:

- include/nts.h
- ntpd/nts.c
- ntpd/wscript


Changes:

=====================================
include/nts.h
=====================================
@@ -1,8 +1,8 @@
 /*
- * nts.h - NTS (Network Time Security) declarations 
+ * nts.h - NTS (Network Time Security) declarations
  */
-#ifndef NTS_H
-#define NTS_H
+#ifndef GUARD_NTS_H
+#define GUARD_NTS_H
 
 #define NTS_MAX_COOKIES	8	/* RFC 4.1.6 */
 #define NTS_COOKIELEN	128	/* placeholder - see RFC 6 */
@@ -14,4 +14,4 @@ struct ntspeer_t {
     int current_cookie;
 };
 
-#endif	/* NTS_H */
+#endif /* GUARD_NTS_H */


=====================================
ntpd/nts.c
=====================================
@@ -58,7 +58,7 @@ int nts_server_ke_verify(void)
 /*
  * RFC section 4:
  * - Verify server response message
- * - Extract cookie(s). 
+ * - Extract cookie(s).
  */
 int nts_client_ke_verify(struct ntspeer_t *ntspeer)
 {
@@ -69,7 +69,7 @@ int nts_client_ke_verify(struct ntspeer_t *ntspeer)
 /*
  * Daily rotation of server-side master keys.
  */
-int nts_daily(void) 
+int nts_daily(void)
 {
 	return 0;
 }
@@ -92,7 +92,7 @@ int nts_validate(struct parsed_pkt *pkt, struct ntspeer_t *ntspeer)
 
 /*
  * Decorate an outgoing client request or server response with packet
- * extension fields carrying NTS information.  For a server reponse,
+ * extension fields carrying NTS information.  For a server response,
  * the ntspeer pointer is expected to be NULL as there is no
  * per-client server state.  Return the count of words appended.
  */


=====================================
ntpd/wscript
=====================================
@@ -56,7 +56,7 @@ def build(ctx):
         "ntp_recvbuff.c",
         "ntp_restrict.c",
         "ntp_util.c",
-	"nts.c",
+        "nts.c",
     ]
 
     ctx(



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/5cd27533c019266b485bdc2c39b2c774dcdf067d...f1c53a99f6d397e5eb50c593682f32a79841fd8e

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/5cd27533c019266b485bdc2c39b2c774dcdf067d...f1c53a99f6d397e5eb50c593682f32a79841fd8e
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/20190130/461fcd6d/attachment-0001.html>


More information about the vc mailing list