fix: NTP syncs as soon as DHCP has a lease, random origin cookie instead of the unsynced local clock, TLS validates certificates against UTC
This commit is contained in:
1 parent
1d00c1c016
commit
7e036c94e7
13 files changed
+51
-59
No files matched your search
@@ -232,6 +232,7 @@ extern "C" {
|
||||
#define MTK_SYS_WIN_DRAG_FORMATS 206
|
||||
#define MTK_SYS_WIN_DRAG_GET_DATA 207
|
||||
#define MTK_SYS_FS_GROW 208
|
||||
#define MTK_SYS_GETUNIXTIME 209
|
||||
/* @SYSCALLS-END */
|
||||
|
||||
/* Syscall status codes (montauk/statuscodes.h for C++). */
|
||||
@@ -805,6 +806,10 @@ static inline void mtk_gettime(mtk_datetime *out) {
|
||||
_mtk_syscall1(MTK_SYS_GETTIME, (long)out);
|
||||
}
|
||||
|
||||
static inline int64_t mtk_get_unix_time(void) {
|
||||
return (int64_t)_mtk_syscall0(MTK_SYS_GETUNIXTIME);
|
||||
}
|
||||
|
||||
static inline int mtk_set_unix_time(int64_t unix_seconds) {
|
||||
return (int)_mtk_syscall1(MTK_SYS_SETUNIXTIME, (long)unix_seconds);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user