nts_client.h
Go to the documentation of this file.
200 bool_t ntsNextProtoNegoRecordReceived; ///<The NTS Next Protocol Negotiation record has been received
error_t ntsClientRegisterTlsInitCallback(NtsClientContext *context, NtsClientTlsInitCallback callback)
Register TLS initialization callback function.
Definition: nts_client.c:111
error_t ntsClientGetTimestamp(NtsClientContext *context, NtpTimestamp *timestamp)
Retrieve current time from NTS server.
Definition: nts_client.c:209
error_t(* NtsClientTlsInitCallback)(NtsClientContext *context, TlsContext *tlsContext)
TLS initialization callback function.
Definition: nts_client.h:162
@ NTS_CLIENT_STATE_NTS_KE_DISCONNECTING
Definition: nts_client.h:149
error_t ntsClientBindToInterface(NtsClientContext *context, NetInterface *interface)
Bind the NTS client to a particular network interface.
Definition: nts_client.c:155
error_t ntsClientInit(NtsClientContext *context)
Initialize NTS client context.
Definition: nts_client.c:56
void ntsClientDeinit(NtsClientContext *context)
Release NTS client context.
Definition: nts_client.c:452
error_t ntsClientRegisterRandCallback(NtsClientContext *context, NtsClientRandCallback callback)
Register random data generation callback function.
Definition: nts_client.c:133
error_t ntsClientSetTimeout(NtsClientContext *context, systime_t timeout)
Set communication timeout.
Definition: nts_client.c:90
General definitions for cryptographic algorithms.
char_t ntpServerName[NTS_CLIENT_MAX_NTP_SERVER_NAME_LEN+1]
NTP server name.
Definition: nts_client.h:183
uint32_t ntsClientGetKissCode(NtsClientContext *context)
Retrieve the kiss code from a Kiss-of-Death message.
Definition: nts_client.c:426
NtsClientRandCallback randCallback
Random data generation callback function.
Definition: nts_client.h:193
uint8_t buffer[NTS_CLIENT_BUFFER_SIZE]
Memory buffer for input/output operations.
Definition: nts_client.h:197
TLS (Transport Layer Security)
NtsClientTlsInitCallback tlsInitCallback
TLS initialization callback function.
Definition: nts_client.h:192
Definitions common to NTP client and server.
bool_t aeadAlgoNegoRecordReceived
The AEAD Algorithm Negotiation record has been received.
Definition: nts_client.h:201
Definitions common to NTS client and server.
error_t(* NtsClientRandCallback)(uint8_t *data, size_t length)
Random data generation callback function.
Definition: nts_client.h:170
#define NTS_CLIENT_MAX_NTP_SERVER_NAME_LEN
Definition: nts_client.h:104
TCP/IP stack core.
error_t ntsClientSetServerAddr(NtsClientContext *context, const IpAddr *serverIpAddr, uint16_t serverPort)
Specify the IP address of the NTS server.
Definition: nts_client.c:178
bool_t ntsNextProtoNegoRecordReceived
The NTS Next Protocol Negotiation record has been received.
Definition: nts_client.h:200