RTRlib
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Structures | Functions
SSH transport socket

Data Structures

struct  tr_ssh_config
 

Functions

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

Detailed Description

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

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

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.
Examples:
rtr_mgr.c, and ssh_tr.c.