Skip to content

Commit 7840efd

Browse files
committed
session mbedtls REFACTOR unused param
1 parent 0423ccb commit 7840efd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/session_mbedtls.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,6 +1538,7 @@ nc_tls_privkey_export_openssh(const char *pk, char **privkey)
15381538
int rc = 0;
15391539
ssh_key sshkey = NULL;
15401540

1541+
(void)pk;
15411542
*privkey = NULL;
15421543

15431544
/* older versions of libssh (< v0.11.0) do not support exporting to OpenSSH format,
@@ -1556,9 +1557,10 @@ nc_tls_privkey_export_openssh(const char *pk, char **privkey)
15561557
rc = 1;
15571558
goto cleanup;
15581559
}
1559-
#endif // (LIBSSH_VERSION_MAJOR > 0) || (LIBSSH_VERSION_MAJOR == 0 && LIBSSH_VERSION_MINOR >= 11)
15601560

15611561
cleanup:
1562+
#endif // (LIBSSH_VERSION_MAJOR > 0) || (LIBSSH_VERSION_MAJOR == 0 && LIBSSH_VERSION_MINOR >= 11)
1563+
15621564
ssh_key_free(sshkey);
15631565
return rc;
15641566
}

0 commit comments

Comments
 (0)