libnetconf  0.10.0-146_trunk
NETCONF Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
libnetconf_ssh.h
Go to the documentation of this file.
1 
40 #ifndef LIBNETCONF_SSH_H_
41 #define LIBNETCONF_SSH_H_
42 
43 #include "callbacks_ssh.h"
44 #include "transport.h"
45 #include "callhome.h"
46 
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 
55 typedef enum
56 {
61 
82 void nc_ssh_pref(NC_SSH_AUTH_TYPE type, short int preference);
83 
84 #ifndef DISABLE_LIBSSH
85 
111 struct nc_session *nc_session_connect_libssh_sess(const char *host, unsigned short port, const char *username, const struct nc_cpblts* cpblts, ssh_session ssh_sess);
112 
113 struct nc_session *nc_session_accept_libssh_channel(const struct nc_cpblts* capabilities, const char* username, ssh_channel ssh_chan);
114 
115 #endif
116 
117 #ifdef __cplusplus
118 }
119 #endif
120 
121 #endif /* LIBNETCONF_H_ */
122 
struct nc_session * nc_session_accept_libssh_channel(const struct nc_cpblts *capabilities, const char *username, ssh_channel ssh_chan)
Functions implementing transport layer for NETCONF.
struct nc_session * nc_session_connect_libssh_sess(const char *host, unsigned short port, const char *username, const struct nc_cpblts *cpblts, ssh_session ssh_sess)
Create NETCONF session to the specified server using a custom SSH session.
Definition: libnetconf_ssh.h:58
NC_SSH_AUTH_TYPE
Available SSH authentication mechanisms.
Definition: libnetconf_ssh.h:55
void nc_ssh_pref(NC_SSH_AUTH_TYPE type, short int preference)
Set the preference of the SSH authentication methods.
Definition: libnetconf_ssh.h:57
Functions to set libssh's callbacks.
Functions to connect NETCONF server to a NETCONF client (Call Home).
Definition: libnetconf_ssh.h:59