RTRlib
rtrlib
transport
ssh
ssh_transport.h
1
/*
2
* This file is part of RTRlib.
3
*
4
* This file is subject to the terms and conditions of the MIT license.
5
* See the file LICENSE in the top level directory for more details.
6
*
7
* Website: http://rtrlib.realmv6.org/
8
*/
9
25
#ifndef SSH_TRANSPORT_H
26
#define SSH_TRANSPORT_H
27
28
#include "rtrlib/transport/transport.h"
29
51
struct
tr_ssh_config
{
52
char
*host;
53
unsigned
int
port;
54
char
*bindaddr;
55
char
*username;
56
char
*server_hostkey_path;
57
char
*client_privkey_path;
58
void
*data;
59
int (*new_socket)(
void
*data);
60
unsigned
int
connect_timeout;
61
char
*password;
62
};
63
71
int
tr_ssh_init
(
const
struct
tr_ssh_config
*config,
struct
tr_socket
*socket);
72
73
#endif
74
tr_socket
A transport socket datastructure.
Definition:
transport.h:102
tr_ssh_config
A tr_ssh_config struct holds configuration data for an tr_ssh socket.
Definition:
ssh_transport.h:51
tr_ssh_init
int tr_ssh_init(const struct tr_ssh_config *config, struct tr_socket *socket)
Initializes the tr_socket struct for a SSH connection.
Generated on Tue Jun 7 2022 18:02:20 for RTRlib by
1.8.17