\doxysubsection{SSH transport socket}
\hypertarget{group__mod__ssh__transport__h}{}\label{group__mod__ssh__transport__h}\index{SSH transport socket@{SSH transport socket}}


An implementation of the SSH protocol for the RTR transport.  


\doxysubsubsubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{structtr__ssh__config}{tr\+\_\+ssh\+\_\+config}}
\begin{DoxyCompactList}\small\item\em A \doxylink{structtr__ssh__config}{tr\+\_\+ssh\+\_\+config} struct holds configuration data for an tr\+\_\+ssh socket. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \mbox{\hyperlink{group__mod__ssh__transport__h_gac5d5516e62228cc180c6aaac467bfe6c}{tr\+\_\+ssh\+\_\+init}} (const struct \mbox{\hyperlink{structtr__ssh__config}{tr\+\_\+ssh\+\_\+config}} \texorpdfstring{$\ast$}{*}config, struct \mbox{\hyperlink{structtr__socket}{tr\+\_\+socket}} \texorpdfstring{$\ast$}{*}socket)
\begin{DoxyCompactList}\small\item\em Initializes the \doxylink{structtr__socket}{tr\+\_\+socket} struct for a SSH connection. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsubsection{Detailed Description}
An implementation of the SSH protocol for the RTR transport. 

This transport implementation uses libssh (\href{http://www.libssh.org/}{\texttt{ http\+://www.\+libssh.\+org/}}) for all ssh specific operations.~\newline
See \doxylink{group__mod__transport__h}{transport interface} for a list of supported operations. 

\doxysubsubsection{Function Documentation}
\Hypertarget{group__mod__ssh__transport__h_gac5d5516e62228cc180c6aaac467bfe6c}\label{group__mod__ssh__transport__h_gac5d5516e62228cc180c6aaac467bfe6c} 
\index{SSH transport socket@{SSH transport socket}!tr\_ssh\_init@{tr\_ssh\_init}}
\index{tr\_ssh\_init@{tr\_ssh\_init}!SSH transport socket@{SSH transport socket}}
\doxysubsubsubsection{\texorpdfstring{tr\_ssh\_init()}{tr\_ssh\_init()}}
{\footnotesize\ttfamily int tr\+\_\+ssh\+\_\+init (\begin{DoxyParamCaption}\item[{const struct \mbox{\hyperlink{structtr__ssh__config}{tr\+\_\+ssh\+\_\+config}} \texorpdfstring{$\ast$}{*}}]{config,  }\item[{struct \mbox{\hyperlink{structtr__socket}{tr\+\_\+socket}} \texorpdfstring{$\ast$}{*}}]{socket }\end{DoxyParamCaption})}



{\ttfamily \#include $<$\mbox{\hyperlink{ssh__transport_8h}{rtrlib/transport/ssh/ssh\+\_\+transport.\+h}}$>$}



Initializes the \doxylink{structtr__socket}{tr\+\_\+socket} struct for a SSH connection. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em config} & SSH configuration for the connection. \\
\hline
\mbox{\texttt{ out}}  & {\em socket} & Initialized transport socket. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
TR\+\_\+\+SUCCESS On success. 

TR\+\_\+\+ERROR On error. 
\end{DoxyReturn}
