blob: 28876ca2ddf06ce8a77e29eaf6af2dfb5e7cd633 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "rtrlib/rtrlib.h"
#include <stdlib.h>
int main()
{
struct tr_socket ssh_socket;
char ssh_host[] = "123.231.123.221";
char ssh_user[] = "rpki_user";
char ssh_hostkey[] = "/etc/rpki-rtr/hostkey";
char ssh_privkey[] = "/etc/rpki-rtr/client.priv";
struct tr_ssh_config config = {
ssh_host, 22, NULL, ssh_user, ssh_hostkey, ssh_privkey, NULL, NULL, 0, NULL
};
tr_ssh_init(&config, &ssh_socket);
}
|