RTRlib
Loading...
Searching...
No Matches
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
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
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