RTRlib
Loading...
Searching...
No Matches
SSH transport socket

An implementation of the SSH protocol for the RTR transport. More...

Data Structures

struct  tr_ssh_config
 A tr_ssh_config struct holds configuration data for an tr_ssh socket. More...
 

Functions

int tr_ssh_init (const struct tr_ssh_config *config, struct tr_socket *socket)
 Initializes the tr_socket struct for a SSH connection.
 

Detailed Description

An implementation of the SSH protocol for the RTR transport.

This transport implementation uses libssh (http://www.libssh.org/) for all ssh specific operations.
See transport interface for a list of supported operations.

Function Documentation

◆ tr_ssh_init()

int tr_ssh_init ( const struct tr_ssh_config config,
struct tr_socket socket 
)

#include <rtrlib/transport/ssh/ssh_transport.h>

Initializes the tr_socket struct for a SSH connection.

Parameters
[in]configSSH configuration for the connection.
[out]socketInitialized transport socket.
Returns
TR_SUCCESS On success.
TR_ERROR On error.