mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-31 00:03:07 +03:00
Fix compilation without server and sftp modes
(cherry picked from commit 809b3adeba
)
This commit is contained in:
committed by
Andreas Schneider
parent
a493a90c59
commit
4c05be0c1b
@ -216,6 +216,8 @@ failed:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef WITH_SFTP
|
||||
|
||||
struct torture_sftp *torture_sftp_session(ssh_session session) {
|
||||
struct torture_sftp *t;
|
||||
char template[] = "/tmp/ssh_torture_XXXXXX";
|
||||
@ -282,7 +284,10 @@ void torture_sftp_close(struct torture_sftp *t) {
|
||||
free(t->testdir);
|
||||
free(t);
|
||||
}
|
||||
#endif
|
||||
#endif /* WITH_SFTP */
|
||||
|
||||
#endif /* _WIN32 */
|
||||
|
||||
|
||||
int torture_libssh_verbosity(void){
|
||||
return verbosity;
|
||||
|
Reference in New Issue
Block a user