Loading...
Searching...
No Matches
ssh_transport.h
/*
* This file is part of RTRlib.
*
* This file is subject to the terms and conditions of the MIT license.
* See the file LICENSE in the top level directory for more details.
*
* Website: http://rtrlib.realmv6.org/
*/
#ifndef SSH_TRANSPORT_H
#define SSH_TRANSPORT_H
#include "rtrlib/transport/transport.h"
struct tr_ssh_config {
char *host;
unsigned int port;
char *bindaddr;
char *username;
char *server_hostkey_path;
char *client_privkey_path;
void *data;
int (*new_socket)(void *data);
unsigned int connect_timeout;
char *password;
};
int tr_ssh_init(const struct tr_ssh_config *config, struct tr_socket *socket);
#endif
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.
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