RTRlib
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
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 
42 struct tr_ssh_config {
43  char *host;
44  unsigned int port;
45  char *bindaddr;
46  char *username;
47  char *server_hostkey_path;
48  char *client_privkey_path;
49 };
50 
58 int tr_ssh_init(const struct tr_ssh_config *config, struct tr_socket *socket);
59 
60 #endif
61 /* @} */
int tr_ssh_init(const struct tr_ssh_config *config, struct tr_socket *socket)
Initializes the tr_socket struct for a SSH connection.
A tr_ssh_config struct holds configuration data for an tr_ssh socket.
Definition: ssh_transport.h:42
A transport socket datastructure.
Definition: transport.h:95