RTRlib
 All Data Structures Functions Typedefs Enumerations Enumerator Groups Pages
ssh_transport.h
1 /*
2  * This file is part of RTRlib.
3  *
4  * RTRlib is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or (at your
7  * option) any later version.
8  *
9  * RTRlib is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12  * License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with RTRlib; see the file COPYING.LESSER.
16  *
17  * INET group, Hamburg University of Applied Sciences,
18  * CST group, Freie Universitaet Berlin
19  * Website: http://rpki.realmv6.org/
20  */
21 
37 #ifndef SSH_TRANSPORT_H
38 #define SSH_TRANSPORT_H
39 #include <libssh/libssh.h>
40 #include "../transport.h"
41 
54 struct tr_ssh_config {
55  char *host;
56  unsigned int port;
57  char *bindaddr;
58  char *username;
59  char *server_hostkey_path;
60  char *client_privkey_path;
61 };
62 
70 int tr_ssh_init(const struct tr_ssh_config *config, struct tr_socket *socket);
71 
72 #endif
73 /* @} */
int tr_ssh_init(const struct tr_ssh_config *config, struct tr_socket *socket)
Initializes the tr_socket struct for a SSH connection.
Definition: ssh_transport.c:254
A tr_ssh_config struct holds configuration data for an tr_ssh socket.
Definition: ssh_transport.h:54
A transport socket datastructure.
Definition: transport.h:107