mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:05:06 -05:00
nts: split creating server and client credentials
This commit is contained in:
@@ -281,7 +281,7 @@ NKC_CreateInstance(IPSockAddr *address, const char *name)
|
||||
|
||||
/* Share the credentials with other client instances */
|
||||
if (!client_credentials)
|
||||
client_credentials = NKSN_CreateCertCredentials(NULL, NULL, CNF_GetNtsTrustedCertFile());
|
||||
client_credentials = NKSN_CreateClientCertCredentials(CNF_GetNtsTrustedCertFile());
|
||||
client_credentials_refs++;
|
||||
|
||||
return inst;
|
||||
|
||||
Reference in New Issue
Block a user