mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09: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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user