libnetconf2
3.5.4
NETCONF server and client library in C.
|
libnetconf2 Call Home session client manipulation More...
#include <libyang/libyang.h>
#include <libssh/libssh.h>
#include "messages_client.h"
#include "netconf.h"
#include "session.h"
Go to the source code of this file.
Functions | |
int | nc_accept_callhome (int timeout, struct ly_ctx *ctx, struct nc_session **session) |
Accept a Call Home connection on any of the listening binds. More... | |
int | nc_client_ssh_ch_add_bind_listen (const char *address, uint16_t port) |
Add a new client bind and start listening on it for SSH Call Home connections. More... | |
int | nc_client_ssh_ch_add_keypair (const char *pub_key, const char *priv_key) |
Add an SSH public and private key pair to be used for Call Home client authentication. More... | |
int | nc_client_ssh_ch_del_bind (const char *address, uint16_t port) |
Remove an SSH listening client bind. More... | |
int | nc_client_ssh_ch_del_keypair (int idx) |
Remove an SSH public and private key pair that was used for Call Home client authentication. More... | |
void | nc_client_ssh_ch_get_auth_interactive_clb (char *(**auth_interactive)(const char *auth_name, const char *instruction, const char *prompt, int echo, void *priv), void **priv) |
Get currently set SSH Call Home interactive authentication callback and its private data previously set by nc_client_ssh_ch_set_auth_interactive_clb(). More... | |
void | nc_client_ssh_ch_get_auth_password_clb (char *(**auth_password)(const char *username, const char *hostname, void *priv), void **priv) |
Get currently set SSH Call Home password authentication callback and its private data previously set by nc_client_ssh_ch_set_auth_password_clb(). More... | |
int16_t | nc_client_ssh_ch_get_auth_pref (NC_SSH_AUTH_TYPE auth_type) |
Get SSH Call Home authentication method preference. More... | |
void | nc_client_ssh_ch_get_auth_privkey_passphrase_clb (char *(**auth_privkey_passphrase)(const char *privkey_path, void *priv), void **priv) |
Get currently set SSH Call Home publickey authentication encrypted private key passphrase callback and its private data previously set by nc_client_ssh_ch_set_auth_privkey_passphrase_clb(). More... | |
int | nc_client_ssh_ch_get_keypair (int idx, const char **pub_key, const char **priv_key) |
Get a specific keypair set to be used for Call Home client authentication. More... | |
int | nc_client_ssh_ch_get_keypair_count (void) |
Get the number of public an private key pairs set to be used for Call Home client authentication. More... | |
const char * | nc_client_ssh_ch_get_username (void) |
Get client Call Home SSH username used for authentication. More... | |
void | nc_client_ssh_ch_set_auth_interactive_clb (char *(*auth_interactive)(const char *auth_name, const char *instruction, const char *prompt, int echo, void *priv), void *priv) |
Set SSH Call Home interactive authentication callback. More... | |
void | nc_client_ssh_ch_set_auth_password_clb (char *(*auth_password)(const char *username, const char *hostname, void *priv), void *priv) |
Set SSH Call Home password authentication callback. More... | |
void | nc_client_ssh_ch_set_auth_pref (NC_SSH_AUTH_TYPE auth_type, int16_t pref) |
Set SSH Call Home authentication method preference. More... | |
void | nc_client_ssh_ch_set_auth_privkey_passphrase_clb (char *(*auth_privkey_passphrase)(const char *privkey_path, void *priv), void *priv) |
Set SSH Call Home publickey authentication encrypted private key passphrase callback. More... | |
void | nc_client_ssh_ch_set_knownhosts_mode (NC_SSH_KNOWNHOSTS_MODE mode) |
Set SSH Call Home behaviour of checking the host key and adding/reading entries to/from the known_hosts file. More... | |
int | nc_client_ssh_ch_set_knownhosts_path (const char *path) |
Set SSH Call Home path to the known_hosts file for connections. More... | |
int | nc_client_ssh_ch_set_username (const char *username) |
Set client Call Home SSH username used for authentication. More... | |
int | nc_client_tls_ch_add_bind_hostname_listen (const char *address, uint16_t port, const char *hostname) |
Add a new client bind and start listening on it for TLS Call Home connections coming from the specified hostname. More... | |
int | nc_client_tls_ch_add_bind_listen (const char *address, uint16_t port) |
Add a new client bind and start listening on it for TLS Call Home connections. More... | |
int | nc_client_tls_ch_del_bind (const char *address, uint16_t port) |
Remove a TLS listening client bind. More... | |
void | nc_client_tls_ch_get_cert_key_paths (const char **client_cert, const char **client_key) |
Get client Call Home authentication identity - a certificate and a private key. More... | |
void | nc_client_tls_ch_get_crl_paths (const char **crl_file, const char **crl_dir) |
Deprecated. More... | |
void | nc_client_tls_ch_get_trusted_ca_paths (const char **ca_file, const char **ca_dir) |
Get client Call Home trusted CA certificates. More... | |
int | nc_client_tls_ch_set_cert_key_paths (const char *client_cert, const char *client_key) |
Set client Call Home authentication identity - a certificate and a private key. More... | |
int | nc_client_tls_ch_set_crl_paths (const char *crl_file, const char *crl_dir) |
Deprecated. More... | |
int | nc_client_tls_ch_set_trusted_ca_paths (const char *ca_file, const char *ca_dir) |
Set client Call Home trusted CA certificates. More... | |
libnetconf2 Call Home session client manipulation
This source code is licensed under BSD 3-Clause License (the "License"). You may not use this file except in compliance with the License. You may obtain a copy of the License at
https://opensource.org/licenses/BSD-3-Clause
Definition in file session_client_ch.h.