Example of how to open a SSH transport connection.
#include "rtrlib/rtrlib.h"
#include <stdlib.h>
int main()
{
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";
ssh_host, 22, NULL, ssh_user, ssh_hostkey, ssh_privkey, NULL, NULL, 0, NULL
};
}
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