nts: add NTS-KE server and client

Add a client and server implementing the Network Time Security (NTS) Key
Establishment. Use the GnuTLS library for TLS.
This commit is contained in:
Miroslav Lichvar
2020-02-04 15:10:14 +01:00
parent 72f99033fe
commit a420ed57a1
12 changed files with 2378 additions and 4 deletions

26
stubs.c
View File

@@ -40,6 +40,8 @@
#include "ntp_io.h"
#include "ntp_sources.h"
#include "ntp_signd.h"
#include "nts_ke_client.h"
#include "nts_ke_server.h"
#include "privops.h"
#include "refclock.h"
#include "sched.h"
@@ -447,3 +449,27 @@ CMC_DestroyInstance(CMC_Instance inst)
}
#endif /* !HAVE_CMAC */
#ifndef FEAT_NTS
void
NKC_Initialise(void)
{
}
void
NKC_Finalise(void)
{
}
void
NKS_Initialise(int scfilter_level)
{
}
void
NKS_Finalise(void)
{
}
#endif /* !FEAT_NTS */