226#if defined (NC_ENABLED_SSH) || defined (NC_ENABLED_TLS)
NC_SESSION_TERM_REASON
Enumeration of reasons of the NETCONF session termination as defined in RFC 6470.
libnetconf2's general public functions and structures definitions.
NC_TLS_CTN_MAPTYPE
Enumeration of cert-to-name mapping types.
@ NC_TLS_CTN_SAN_IP_ADDRESS
@ NC_TLS_CTN_SAN_RFC822_NAME
@ NC_TLS_CTN_SAN_DNS_NAME
NC_STATUS
Enumeration of possible session statuses.
void * nc_session_get_data(const struct nc_session *session)
Get the data assigned to a session.
struct ly_ctx * nc_session_get_ctx(const struct nc_session *session)
Get session context.
void nc_session_free(struct nc_session *session, void(*data_free)(void *))
Free the NETCONF session object.
NC_CH_START_WITH
Enumeration of Call Home client priority policy.
NC_STATUS nc_session_get_status(const struct nc_session *session)
Get session status.
const char * nc_session_get_path(const struct nc_session *session)
Get session path (unix socket only).
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_thread_destroy(void)
Free all the dynamically allocated thread-specific libssl/libcrypto resources.
NC_SSH_KEY_TYPE
Enumeration of SSH key types.
const char * nc_session_get_username(const struct nc_session *session)
Get session username.
NC_TRANSPORT_IMPL
Enumeration of transport implementations (ways how libnetconf implements NETCONF transport protocol)
const char * nc_session_get_host(const struct nc_session *session)
Get session host.
int nc_session_get_version(const struct nc_session *session)
Get session NETCONF version.
NC_SSH_AUTH_TYPE
Enumeration of NETCONF SSH authentication methods.
@ NC_SSH_AUTH_INTERACTIVE
void nc_session_set_data(struct nc_session *session, void *data)
Assign arbitrary data to a session.
uint16_t nc_session_get_port(const struct nc_session *session)
Get session port.
NC_TRANSPORT_IMPL nc_session_get_ti(const struct nc_session *session)
Get session transport used.
uint32_t nc_session_get_id(const struct nc_session *session)
Get session ID.
uint32_t nc_session_get_killed_by(const struct nc_session *session)
Get session killer session ID.