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

@@ -742,7 +742,7 @@ NKS_Initialise(void)
return;
if (helper_sock_fd == INVALID_SOCK_FD) {
server_credentials = NKSN_CreateCertCredentials(cert, key, NULL);
server_credentials = NKSN_CreateServerCertCredentials(cert, key);
if (!server_credentials)
return;
} else {