Skip to content

Commit b5d0e15

Browse files
committed
Fixed ClientSetPrivateKey calls
1 parent 7ccca1a commit b5d0e15

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/client/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ int ClientSetPrivateKey(const char* privKeyName, int userEcc,
977977
void* heap, const char* tpmKeyAuth)
978978
{
979979
int ret = 0;
980-
(void)tpmKeyAuth; /* Not used*/
980+
(void)tpmKeyAuth; /* Not used */
981981

982982
if (privKeyName == NULL) {
983983
if (userEcc) {

examples/scpclient/scpclient.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ THREAD_RETURN WOLFSSH_THREAD scp_client(void* args)
218218
err_sys("Empty path values");
219219
}
220220

221-
ret = ClientSetPrivateKey(privKeyName, 0, NULL);
221+
ret = ClientSetPrivateKey(privKeyName, 0, NULL, NULL);
222222
if (ret != 0) {
223223
err_sys("Error setting private key");
224224
}

examples/sftpclient/sftpclient.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ THREAD_RETURN WOLFSSH_THREAD sftpclient_test(void* args)
13171317
}
13181318
#endif /* WOLFSSH_STATIC_MEMORY */
13191319

1320-
ret = ClientSetPrivateKey(privKeyName, userEcc, heap);
1320+
ret = ClientSetPrivateKey(privKeyName, userEcc, heap, NULL);
13211321
if (ret != 0) {
13221322
err_sys("Error setting private key");
13231323
}

0 commit comments

Comments
 (0)