RTRlib
Loading...
Searching...
No Matches
ssh_transport.h
Go to the documentation of this file.
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
29
52 char *host;
53 unsigned int port;
54 char *bindaddr;
55 char *username;
58 void *data;
59 int (*new_socket)(void *data);
60 unsigned int connect_timeout;
61 char *password;
62};
63
71int tr_ssh_init(const struct tr_ssh_config *config, struct tr_socket *socket);
72
73#endif
int tr_ssh_init(const struct tr_ssh_config *config, struct tr_socket *socket)
Initializes the tr_socket struct for a SSH connection.
A transport socket datastructure.
Definition transport.h:102
A tr_ssh_config struct holds configuration data for an tr_ssh socket.
Definition ssh_transport.h:51
unsigned int port
Definition ssh_transport.h:53
char * host
Definition ssh_transport.h:52
unsigned int connect_timeout
Definition ssh_transport.h:60
char * bindaddr
Definition ssh_transport.h:54
char * client_privkey_path
Definition ssh_transport.h:57
int(* new_socket)(void *data)
Definition ssh_transport.h:59
char * server_hostkey_path
Definition ssh_transport.h:56
char * username
Definition ssh_transport.h:55
char * password
Definition ssh_transport.h:61
void * data
Definition ssh_transport.h:58