nts: split creating server and client credentials

This commit is contained in:
Miroslav Lichvar
2021-02-11 10:52:06 +01:00
parent a598983f9b
commit 0e4995e10b
5 changed files with 30 additions and 9 deletions

View File

@@ -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;