mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 19:45:07 -05:00
conf: add set selection to ntstrustedcerts
Add an optional set-ID argument to the ntstrustedcerts directive to enable multiple sets of trusted certificates to be specified.
This commit is contained in:
@@ -283,9 +283,7 @@ NKC_CreateInstance(IPSockAddr *address, const char *name, uint32_t cert_set)
|
||||
inst->destroying = 0;
|
||||
inst->got_response = 0;
|
||||
|
||||
n_certs = CNF_GetNtsTrustedCertsPaths(&trusted_certs);
|
||||
certs_ids = MallocArray(uint32_t, n_certs);
|
||||
memset(certs_ids, 0, sizeof (uint32_t) * n_certs);
|
||||
n_certs = CNF_GetNtsTrustedCertsPaths(&trusted_certs, &certs_ids);
|
||||
|
||||
/* Share the credentials among clients using the default set of trusted
|
||||
certificates, which likely contains most certificates */
|
||||
@@ -301,8 +299,6 @@ NKC_CreateInstance(IPSockAddr *address, const char *name, uint32_t cert_set)
|
||||
n_certs, cert_set);
|
||||
}
|
||||
|
||||
Free(certs_ids);
|
||||
|
||||
return inst;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user