mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-09-21 15:52:39 +02:00
a466cc5537
Security: NtpBUg3767, NtpBug3808, NtpBug3807 (CVE-2023-26555) MFC after: immediately
32 lines
462 B
C
32 lines
462 B
C
|
|
#include "config.h"
|
|
#include "sntptest.h"
|
|
|
|
void
|
|
sntptest(void) {
|
|
optionSaveState(&sntpOptions);
|
|
}
|
|
|
|
|
|
void
|
|
sntptest_destroy(void) {
|
|
optionRestore(&sntpOptions);
|
|
}
|
|
|
|
|
|
void
|
|
ActivateOption(const char* option, const char* argument) {
|
|
|
|
const int ARGV_SIZE = 4;
|
|
|
|
char* opts[ARGV_SIZE];
|
|
|
|
opts[0] = estrdup("sntpopts");
|
|
opts[1] = estrdup(option);
|
|
opts[2] = estrdup(argument);
|
|
opts[3] = estrdup("127.0.0.1");
|
|
|
|
optionProcess(&sntpOptions, COUNTOF(opts), opts);
|
|
}
|
|
|