1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-31 00:03:07 +03:00

tests: add sftp server test

Signed-off-by: tatataeki <shengzeyu19_98@163.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This commit is contained in:
tatataeki
2022-09-06 15:50:41 +08:00
committed by Jakub Jelen
parent 69ad6985de
commit 329d53a109
5 changed files with 1825 additions and 1 deletions

View File

@ -24,6 +24,7 @@
#include "config.h"
#include <libssh/libssh.h>
#include <libssh/sftp.h>
#include <libssh/callbacks.h>
#define SSHD_DEFAULT_USER "libssh"
@ -70,6 +71,7 @@ struct channel_data_st {
void *server_state;
/* This pointer is useful to set data for custom callbacks */
void *extra_data;
sftp_session sftp;
};
/* A userdata struct for session. */