mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
tests: Add ssh server setup functionality
Add the ability to generate a keypair (RSA, but tests that focus on what occurs over a connection may well not care) and an ssh_bind easily. Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
f4154c503b
commit
4bde48bb2e
@@ -35,6 +35,7 @@
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "libssh/priv.h"
|
||||
#include "libssh/server.h"
|
||||
#include "libssh/sftp.h"
|
||||
|
||||
#include <cmocka.h>
|
||||
@@ -66,6 +67,10 @@ ssh_session torture_ssh_session(const char *host,
|
||||
const char *user,
|
||||
const char *password);
|
||||
|
||||
ssh_bind torture_ssh_bind(const char *addr,
|
||||
const unsigned int port,
|
||||
const char *private_key_file);
|
||||
|
||||
struct torture_sftp *torture_sftp_session(ssh_session session);
|
||||
void torture_sftp_close(struct torture_sftp *t);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user