nts: allow ntstrustedcerts to specify directory

If the specified path is a directory, load all certificates in the
directory.
This commit is contained in:
Miroslav Lichvar
2021-02-11 15:43:49 +01:00
parent 316d47e3b4
commit 26ce610155
5 changed files with 30 additions and 22 deletions

View File

@@ -281,7 +281,7 @@ NKC_CreateInstance(IPSockAddr *address, const char *name)
inst->destroying = 0;
inst->got_response = 0;
n_certs = CNF_GetNtsTrustedCertsFiles(&trusted_certs);
n_certs = CNF_GetNtsTrustedCertsPaths(&trusted_certs);
/* Share the credentials with other client instances */
if (!client_credentials)