You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/07/18 09:44:45 UTC
[incubator-nuttx-apps] branch master updated: netutils: netclient:
Introduce CONFIG_NETUTILS_NTPCLIENT_WITH_AUTH
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 63068ce netutils: netclient: Introduce CONFIG_NETUTILS_NTPCLIENT_WITH_AUTH
63068ce is described below
commit 63068ce6025a2883f695618278ae5428bd6ee250
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Fri Jul 17 12:10:05 2020 +0900
netutils: netclient: Introduce CONFIG_NETUTILS_NTPCLIENT_WITH_AUTH
NOTE: currently, no authentication-related code is implemented.
Signed-off-by: Masayuki Ishikawa <Ma...@jp.sony.com>
---
netutils/ntpclient/Kconfig | 4 ++++
netutils/ntpclient/ntpv3.h | 2 ++
2 files changed, 6 insertions(+)
diff --git a/netutils/ntpclient/Kconfig b/netutils/ntpclient/Kconfig
index ce2be15..2694dd8 100644
--- a/netutils/ntpclient/Kconfig
+++ b/netutils/ntpclient/Kconfig
@@ -42,4 +42,8 @@ config NETUTILS_NTPCLIENT_SIGWAKEUP
int "NTP client wakeup signal number"
default 18
+config NETUTILS_NTPCLIENT_WITH_AUTH
+ bool "NTP client with authentication"
+ default n
+
endif # NETUTILS_NTPCLIENT
diff --git a/netutils/ntpclient/ntpv3.h b/netutils/ntpclient/ntpv3.h
index 9330ec5..033a1e6 100644
--- a/netutils/ntpclient/ntpv3.h
+++ b/netutils/ntpclient/ntpv3.h
@@ -197,11 +197,13 @@ struct ntp_datagram_s
uint8_t origtimestamp[8]; /* Originate Timestamp */
uint8_t recvtimestamp[8]; /* Receive Timestamp */
uint8_t xmittimestamp[8]; /* Transmit Timestamp */
+#ifdef CONFIG_NETUTILS_NTPCLIENT_WITH_AUTH
uint8_t keyid[4]; /* Authenticator data */
uint8_t digest1[4];
uint8_t digest2[4];
uint8_t digest3[4];
uint8_t digest4[4];
+#endif
};
#endif /* __APPS_NETUTILS_NTPCLIENT_NTPV3_H */