26 #ifdef NC_ENABLED_SSH_TLS
92 #ifdef NC_ENABLED_SSH_TLS
194 #ifdef NC_ENABLED_SSH_TLS
252 void nc_session_free(
struct nc_session *session,
void (*data_free)(
void *));
struct ly_ctx * nc_session_get_ctx(const struct nc_session *session)
Get session context.
NC_SSH_AUTH_TYPE
Enumeration of NETCONF SSH authentication methods.
int nc_session_is_callhome(const struct nc_session *session)
Learn whether a session was created using Call Home or not.
uint16_t nc_session_get_port(const struct nc_session *session)
Get session port.
NC_TLS_VERSION
Enumeration of TLS versions.
NC_TRANSPORT_IMPL
Enumeration of transport implementations (ways how libnetconf implements NETCONF transport protocol) ...
NC_STATUS
Enumeration of possible session statuses.
NC_STATUS nc_session_get_status(const struct nc_session *session)
Get session status.
NC_TRANSPORT_IMPL nc_session_get_ti(const struct nc_session *session)
Get session transport used.
const char * nc_session_get_host(const struct nc_session *session)
Get session host.
uint32_t nc_session_get_killed_by(const struct nc_session *session)
Get session killer session ID.
void nc_session_set_data(struct nc_session *session, void *data)
Assign arbitrary data to a session.
NC_SSH_KNOWNHOSTS_MODE
Enumeration of host key checking and known_hosts entry adding modes.
const char * nc_session_ssh_get_banner(const struct nc_session *session)
Get the SSH banner sent by the peer.
const char * nc_session_get_username(const struct nc_session *session)
Get session username.
NC_SESSION_TERM_REASON
Enumeration of reasons of the NETCONF session termination as defined in RFC 6470. ...
uint32_t nc_session_get_id(const struct nc_session *session)
Get session ID.
NC_SESSION_TERM_REASON nc_session_get_term_reason(const struct nc_session *session)
Get session termination reason.
NC_CH_CONN_TYPE
Enumeration of Call Home connection types.
void nc_session_free(struct nc_session *session, void(*data_free)(void *))
Free the NETCONF session object.
const char * nc_session_get_path(const struct nc_session *session)
Get session path (unix socket only).
int nc_session_get_version(const struct nc_session *session)
Get session NETCONF version.
void * nc_session_get_data(const struct nc_session *session)
Get the data assigned to a session.
NC_TLS_CTN_MAPTYPE
Enumeration of cert-to-name mapping types.
NC_CH_START_WITH
Enumeration of Call Home client priority policy.
libnetconf2's general public functions and structures definitions.