libnetconf2  3.5.1
NETCONF server and client library in C.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
server_config.h
Go to the documentation of this file.
1 
16 #ifndef NC_CONFIG_SERVER_H_
17 #define NC_CONFIG_SERVER_H_
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #include <stdarg.h>
24 #include <stdint.h>
25 
26 #include <libyang/libyang.h>
27 
28 #include "session.h"
29 
70 int nc_server_config_load_modules(struct ly_ctx **ctx);
71 
81 int nc_server_config_setup_diff(const struct lyd_node *diff);
82 
94 int nc_server_config_setup_data(const struct lyd_node *data);
95 
107 int nc_server_config_setup_path(const struct ly_ctx *ctx, const char *path);
108 
109 #ifdef NC_ENABLED_SSH_TLS
110 
124 int nc_server_config_add_address_port(const struct ly_ctx *ctx, const char *endpt_name, NC_TRANSPORT_IMPL transport,
125  const char *address, uint16_t port, struct lyd_node **config);
126 
127 #endif /* NC_ENABLED_SSH_TLS */
128 
137 int nc_server_config_del_endpt(const char *endpt_name, struct lyd_node **config);
138 
139 #ifdef NC_ENABLED_SSH_TLS
140 
155 int nc_server_config_add_keystore_asym_key(const struct ly_ctx *ctx, NC_TRANSPORT_IMPL ti, const char *asym_key_name,
156  const char *privkey_path, const char *pubkey_path, struct lyd_node **config);
157 
166 int nc_server_config_del_keystore_asym_key(const char *asym_key_name, struct lyd_node **config);
167 
184 int nc_server_config_add_keystore_cert(const struct ly_ctx *ctx, const char *asym_key_name, const char *cert_name,
185  const char *cert_path, struct lyd_node **config);
186 
197 int nc_server_config_del_keystore_cert(const char *asym_key_name, const char *cert_name, struct lyd_node **config);
198 
213 int nc_server_config_add_truststore_pubkey(const struct ly_ctx *ctx, const char *pub_bag_name, const char *pubkey_name,
214  const char *pubkey_path, struct lyd_node **config);
215 
225 int nc_server_config_del_truststore_pubkey(const char *pub_bag_name, const char *pubkey_name, struct lyd_node **config);
226 
241 int nc_server_config_add_truststore_cert(const struct ly_ctx *ctx, const char *cert_bag_name, const char *cert_name,
242  const char *cert_path, struct lyd_node **config);
243 
253 int nc_server_config_del_truststore_cert(const char *cert_bag_name,
254  const char *cert_name, struct lyd_node **config);
255 
263 int nc_server_config_oper_get_hostkey_algs(const struct ly_ctx *ctx, struct lyd_node **hostkey_algs);
264 
272 int nc_server_config_oper_get_kex_algs(const struct ly_ctx *ctx, struct lyd_node **kex_algs);
273 
281 int nc_server_config_oper_get_encryption_algs(const struct ly_ctx *ctx, struct lyd_node **encryption_algs);
282 
290 int nc_server_config_oper_get_mac_algs(const struct ly_ctx *ctx, struct lyd_node **mac_algs);
291 
320 int nc_server_config_add_ssh_hostkey(const struct ly_ctx *ctx, const char *endpt_name, const char *hostkey_name,
321  const char *privkey_path, const char *pubkey_path, struct lyd_node **config);
322 
333 int nc_server_config_del_ssh_hostkey(const struct ly_ctx *ctx, const char *endpt_name,
334  const char *hostkey_name, struct lyd_node **config);
335 
351 int nc_server_config_add_ssh_keystore_ref(const struct ly_ctx *ctx, const char *endpt_name, const char *hostkey_name,
352  const char *keystore_reference, struct lyd_node **config);
353 
362 int nc_server_config_del_ssh_keystore_ref(const char *endpt_name, const char *hostkey_name,
363  struct lyd_node **config);
364 
380 int nc_server_config_add_ssh_user_pubkey(const struct ly_ctx *ctx, const char *endpt_name,
381  const char *user_name, const char *pubkey_name, const char *pubkey_path, struct lyd_node **config);
382 
393 int nc_server_config_del_ssh_user_pubkey(const char *endpt_name, const char *user_name,
394  const char *pubkey_name, struct lyd_node **config);
395 
411 int nc_server_config_add_ssh_user_authkey(const struct ly_ctx *ctx, const char *endpt_name,
412  const char *user_name, struct lyd_node **config);
413 
422 int nc_server_config_del_ssh_user_authkey(const char *endpt_name, const char *user_name, struct lyd_node **config);
423 
437 int nc_server_config_add_ssh_user_password(const struct ly_ctx *ctx, const char *endpt_name,
438  const char *user_name, const char *password, struct lyd_node **config);
439 
448 int nc_server_config_del_ssh_user_password(const char *endpt_name, const char *user_name,
449  struct lyd_node **config);
450 
465 int nc_server_config_add_ssh_user_interactive(const struct ly_ctx *ctx, const char *endpt_name,
466  const char *user_name, struct lyd_node **config);
467 
476 int nc_server_config_del_ssh_user_interactive(const char *endpt_name, const char *user_name,
477  struct lyd_node **config);
478 
488 int nc_server_config_del_ssh_user(const char *endpt_name,
489  const char *user_name, struct lyd_node **config);
490 
506 int nc_server_config_add_ssh_truststore_ref(const struct ly_ctx *ctx, const char *endpt_name, const char *user_name,
507  const char *truststore_reference, struct lyd_node **config);
508 
517 int nc_server_config_del_ssh_truststore_ref(const char *endpt_name, const char *user_name,
518  struct lyd_node **config);
519 
535 int nc_server_config_add_ssh_endpoint_client_ref(const struct ly_ctx *ctx, const char *endpt_name,
536  const char *referenced_endpt, struct lyd_node **config);
537 
545 int nc_server_config_del_ssh_endpoint_client_ref(const char *endpt_name, struct lyd_node **config);
546 
573 int nc_server_config_add_tls_server_cert(const struct ly_ctx *ctx, const char *endpt_name, const char *privkey_path,
574  const char *pubkey_path, const char *cert_path, struct lyd_node **config);
575 
583 int nc_server_config_del_tls_server_cert(const char *endpt_name, struct lyd_node **config);
584 
597 int nc_server_config_add_tls_keystore_ref(const struct ly_ctx *ctx, const char *endpt_name, const char *asym_key_ref,
598  const char *cert_ref, struct lyd_node **config);
599 
607 int nc_server_config_del_tls_keystore_ref(const char *endpt_name, struct lyd_node **config);
608 
624 int nc_server_config_add_tls_client_cert(const struct ly_ctx *ctx, const char *endpt_name, const char *cert_name,
625  const char *cert_path, struct lyd_node **config);
626 
636 int nc_server_config_del_tls_client_cert(const char *endpt_name, const char *cert_name, struct lyd_node **config);
637 
649 int nc_server_config_add_tls_client_cert_truststore_ref(const struct ly_ctx *ctx, const char *endpt_name,
650  const char *cert_bag_ref, struct lyd_node **config);
651 
659 int nc_server_config_del_tls_client_cert_truststore_ref(const char *endpt_name, struct lyd_node **config);
660 
684 int nc_server_config_add_tls_ca_cert(const struct ly_ctx *ctx, const char *endpt_name, const char *cert_name,
685  const char *cert_path, struct lyd_node **config);
686 
696 int nc_server_config_del_tls_ca_cert(const char *endpt_name, const char *cert_name, struct lyd_node **config);
697 
709 int nc_server_config_add_tls_ca_cert_truststore_ref(const struct ly_ctx *ctx, const char *endpt_name,
710  const char *cert_bag_ref, struct lyd_node **config);
711 
719 int nc_server_config_del_tls_ca_cert_truststore_ref(const char *endpt_name, struct lyd_node **config);
720 
736 int nc_server_config_add_tls_endpoint_client_ref(const struct ly_ctx *ctx, const char *endpt_name,
737  const char *referenced_endpt, struct lyd_node **config);
738 
746 int nc_server_config_del_tls_endpoint_client_ref(const char *endpt_name, struct lyd_node **config);
747 
763 int nc_server_config_add_tls_ctn(const struct ly_ctx *ctx, const char *endpt_name, uint32_t id, const char *fingerprint,
764  NC_TLS_CTN_MAPTYPE map_type, const char *name, struct lyd_node **config);
765 
775 int nc_server_config_del_tls_ctn(const char *endpt_name, uint32_t id, struct lyd_node **config);
776 
816 int nc_server_config_add_ch_address_port(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name,
817  NC_TRANSPORT_IMPL transport, const char *address, const char *port, struct lyd_node **config);
818 
819 #endif /* NC_ENABLED_SSH_TLS */
820 
829 int nc_server_config_del_ch_client(const char *client_name, struct lyd_node **config);
830 
840 int nc_server_config_del_ch_endpt(const char *client_name, const char *endpt_name, struct lyd_node **config);
841 
854 int nc_server_config_add_ch_persistent(const struct ly_ctx *ctx, const char *client_name, struct lyd_node **config);
855 
869 int nc_server_config_add_ch_period(const struct ly_ctx *ctx, const char *client_name, uint16_t period,
870  struct lyd_node **config);
871 
881 int nc_server_config_del_ch_period(const char *client_name, struct lyd_node **config);
882 
896 int nc_server_config_add_ch_anchor_time(const struct ly_ctx *ctx, const char *client_name,
897  const char *anchor_time, struct lyd_node **config);
898 
906 int nc_server_config_del_ch_anchor_time(const char *client_name, struct lyd_node **config);
907 
921 int nc_server_config_add_ch_idle_timeout(const struct ly_ctx *ctx, const char *client_name,
922  uint16_t idle_timeout, struct lyd_node **config);
923 
933 int nc_server_config_del_ch_idle_timeout(const char *client_name, struct lyd_node **config);
934 
948 int nc_server_config_add_ch_reconnect_strategy(const struct ly_ctx *ctx, const char *client_name,
949  NC_CH_START_WITH start_with, uint16_t max_wait, uint8_t max_attempts, struct lyd_node **config);
950 
960 int nc_server_config_del_ch_reconnect_strategy(const char *client_name, struct lyd_node **config);
961 
966 #ifdef NC_ENABLED_SSH_TLS
967 
994 int nc_server_config_add_ch_ssh_hostkey(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name,
995  const char *hostkey_name, const char *privkey_path, const char *pubkey_path, struct lyd_node **config);
996 
1007 int nc_server_config_del_ch_ssh_hostkey(const char *client_name, const char *endpt_name,
1008  const char *hostkey_name, struct lyd_node **config);
1009 
1027 int nc_server_config_add_ch_ssh_keystore_ref(const struct ly_ctx *ctx, const char *client_name,
1028  const char *endpt_name, const char *hostkey_name, const char *keystore_reference, struct lyd_node **config);
1029 
1039 int nc_server_config_del_ch_ssh_keystore_ref(const char *client_name, const char *endpt_name,
1040  const char *hostkey_name, struct lyd_node **config);
1041 
1059 int nc_server_config_add_ch_ssh_user_pubkey(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name,
1060  const char *user_name, const char *pubkey_name, const char *pubkey_path, struct lyd_node **config);
1061 
1073 int nc_server_config_del_ch_ssh_user_pubkey(const char *client_name, const char *endpt_name,
1074  const char *user_name, const char *pubkey_name, struct lyd_node **config);
1075 
1093 int nc_server_config_add_ch_ssh_user_authkey(const struct ly_ctx *ctx, const char *client_name,
1094  const char *endpt_name, const char *user_name, struct lyd_node **config);
1095 
1105 int nc_server_config_ch_del_ssh_user_authkey(const char *client_name, const char *endpt_name,
1106  const char *user_name, struct lyd_node **config);
1107 
1123 int nc_server_config_add_ch_ssh_user_password(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name,
1124  const char *user_name, const char *password, struct lyd_node **config);
1125 
1135 int nc_server_config_del_ch_ssh_user_password(const char *client_name, const char *endpt_name,
1136  const char *user_name, struct lyd_node **config);
1137 
1154 int nc_server_config_add_ch_ssh_user_interactive(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name,
1155  const char *user_name, struct lyd_node **config);
1156 
1166 int nc_server_config_del_ch_ssh_user_interactive(const char *client_name, const char *endpt_name,
1167  const char *user_name, struct lyd_node **config);
1168 
1178 int nc_server_config_del_ch_ssh_user(const char *client_name, const char *endpt_name,
1179  const char *user_name, struct lyd_node **config);
1180 
1198 int nc_server_config_add_ch_ssh_truststore_ref(const struct ly_ctx *ctx, const char *client_name,
1199  const char *endpt_name, const char *user_name, const char *truststore_reference, struct lyd_node **config);
1200 
1210 int nc_server_config_del_ch_ssh_truststore_ref(const char *client_name, const char *endpt_name,
1211  const char *user_name, struct lyd_node **config);
1212 
1241 int nc_server_config_add_ch_tls_server_cert(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name,
1242  const char *privkey_path, const char *pubkey_path, const char *cert_path, struct lyd_node **config);
1243 
1252 int nc_server_config_del_ch_tls_server_cert(const char *client_name, const char *endpt_name,
1253  struct lyd_node **config);
1254 
1269 int nc_server_config_add_ch_tls_keystore_ref(const struct ly_ctx *ctx, const char *client_name,
1270  const char *endpt_name, const char *asym_key_ref, const char *cert_ref, struct lyd_node **config);
1271 
1280 int nc_server_config_del_ch_tls_keystore_ref(const char *client_name, const char *endpt_name,
1281  struct lyd_node **config);
1282 
1298 int nc_server_config_add_ch_tls_client_cert(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name,
1299  const char *cert_name, const char *cert_path, struct lyd_node **config);
1300 
1311 int nc_server_config_del_ch_tls_client_cert(const char *client_name, const char *endpt_name,
1312  const char *cert_name, struct lyd_node **config);
1313 
1327 int nc_server_config_add_ch_tls_client_cert_truststore_ref(const struct ly_ctx *ctx, const char *client_name,
1328  const char *endpt_name, const char *cert_bag_ref, struct lyd_node **config);
1329 
1338 int nc_server_config_del_ch_tls_client_cert_truststore_ref(const char *client_name, const char *endpt_name,
1339  struct lyd_node **config);
1340 
1356 int nc_server_config_add_ch_tls_ca_cert(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name,
1357  const char *cert_name, const char *cert_path, struct lyd_node **config);
1358 
1369 int nc_server_config_del_ch_tls_ca_cert(const char *client_name, const char *endpt_name,
1370  const char *cert_name, struct lyd_node **config);
1371 
1385 int nc_server_config_add_ch_tls_ca_cert_truststore_ref(const struct ly_ctx *ctx, const char *client_name,
1386  const char *endpt_name, const char *cert_bag_ref, struct lyd_node **config);
1387 
1396 int nc_server_config_del_ch_tls_ca_cert_truststore_ref(const char *client_name, const char *endpt_name,
1397  struct lyd_node **config);
1398 
1416 int nc_server_config_add_ch_tls_ctn(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name,
1417  uint32_t id, const char *fingerprint, NC_TLS_CTN_MAPTYPE map_type, const char *name, struct lyd_node **config);
1418 
1429 int nc_server_config_del_ch_tls_ctn(const char *client_name, const char *endpt_name,
1430  uint32_t id, struct lyd_node **config);
1431 
1436 #endif /* NC_ENABLED_SSH_TLS */
1437 
1438 #ifdef __cplusplus
1439 }
1440 #endif
1441 
1442 #endif /* NC_SESSION_SERVER_H_ */
int nc_server_config_del_tls_ca_cert(const char *endpt_name, const char *cert_name, struct lyd_node **config)
Deletes a client certificate authority (trust-anchor) certificate from the YANG data.
int nc_server_config_add_ch_tls_client_cert_truststore_ref(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name, const char *cert_bag_ref, struct lyd_node **config)
Creates new YANG configuration data nodes for a Call Home truststore reference to a set of client (en...
int nc_server_config_oper_get_mac_algs(const struct ly_ctx *ctx, struct lyd_node **mac_algs)
Gets the MAC algorithms supported by the server from the &#39;iana-ssh-mac-algs&#39; YANG module...
int nc_server_config_load_modules(struct ly_ctx **ctx)
Implements all the required modules and their features in the context. Needs to be called before any ...
int nc_server_config_add_ssh_truststore_ref(const struct ly_ctx *ctx, const char *endpt_name, const char *user_name, const char *truststore_reference, struct lyd_node **config)
Creates new YANG data nodes for a reference to a public key bag located in the truststore.
int nc_server_config_del_ch_anchor_time(const char *client_name, struct lyd_node **config)
Deletes the Call Home anchor time parameter of the periodic connection type from the YANG data...
int nc_server_config_del_ch_ssh_user(const char *client_name, const char *endpt_name, const char *user_name, struct lyd_node **config)
Deletes a Call Home SSH user from the YANG data.
int nc_server_config_del_ssh_truststore_ref(const char *endpt_name, const char *user_name, struct lyd_node **config)
Deletes a truststore reference from the YANG data.
int nc_server_config_del_ch_tls_ctn(const char *client_name, const char *endpt_name, uint32_t id, struct lyd_node **config)
Deletes a Call Home cert-to-name entry from the YANG data.
int nc_server_config_setup_data(const struct lyd_node *data)
Configure server based on the given data.
int nc_server_config_del_ch_ssh_user_interactive(const char *client_name, const char *endpt_name, const char *user_name, struct lyd_node **config)
Deletes a Call Home SSH user&#39;s keyboard interactive authentication from the YANG data.
int nc_server_config_add_tls_keystore_ref(const struct ly_ctx *ctx, const char *endpt_name, const char *asym_key_ref, const char *cert_ref, struct lyd_node **config)
Creates new YANG configuration data nodes for a keystore reference to the TLS server&#39;s certificate...
int nc_server_config_add_tls_ca_cert_truststore_ref(const struct ly_ctx *ctx, const char *endpt_name, const char *cert_bag_ref, struct lyd_node **config)
Creates new YANG configuration data nodes for a truststore reference to a set of client certificate a...
int nc_server_config_add_ch_tls_ctn(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name, uint32_t id, const char *fingerprint, NC_TLS_CTN_MAPTYPE map_type, const char *name, struct lyd_node **config)
Creates new YANG configuration data nodes for a Call Home cert-to-name entry.
int nc_server_config_setup_path(const struct ly_ctx *ctx, const char *path)
Configure server based on the given data stored in a file.
int nc_server_config_add_ssh_user_pubkey(const struct ly_ctx *ctx, const char *endpt_name, const char *user_name, const char *pubkey_name, const char *pubkey_path, struct lyd_node **config)
Creates new YANG configuration data nodes for an SSH user&#39;s public key authentication method...
libnetconf2 session manipulation
int nc_server_config_add_tls_endpoint_client_ref(const struct ly_ctx *ctx, const char *endpt_name, const char *referenced_endpt, struct lyd_node **config)
Creates new YANG configuration data nodes, which will be a reference to another TLS endpoint&#39;s certif...
int nc_server_config_setup_diff(const struct lyd_node *diff)
Configure server based on the given diff.
int nc_server_config_add_ssh_hostkey(const struct ly_ctx *ctx, const char *endpt_name, const char *hostkey_name, const char *privkey_path, const char *pubkey_path, struct lyd_node **config)
Creates new YANG configuration data nodes for a hostkey.
int nc_server_config_add_ch_ssh_user_pubkey(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name, const char *user_name, const char *pubkey_name, const char *pubkey_path, struct lyd_node **config)
Creates new YANG data nodes for a Call Home SSH user&#39;s public key authentication method.
int nc_server_config_add_tls_ca_cert(const struct ly_ctx *ctx, const char *endpt_name, const char *cert_name, const char *cert_path, struct lyd_node **config)
Creates new YANG configuration data nodes for a client certificate authority (trust-anchor) certifica...
int nc_server_config_add_ch_tls_client_cert(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name, const char *cert_name, const char *cert_path, struct lyd_node **config)
Creates new YANG configuration data nodes for a Call Home client&#39;s (end-entity) certificate.
NC_TRANSPORT_IMPL
Enumeration of transport implementations (ways how libnetconf implements NETCONF transport protocol) ...
Definition: session.h:87
int nc_server_config_oper_get_kex_algs(const struct ly_ctx *ctx, struct lyd_node **kex_algs)
Gets the key exchange algorithms supported by the server from the &#39;iana-ssh-key-exchange-algs&#39; YANG m...
int nc_server_config_add_ch_tls_ca_cert_truststore_ref(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name, const char *cert_bag_ref, struct lyd_node **config)
Creates new YANG configuration data nodes for a Call Home truststore reference to a set of client cer...
int nc_server_config_del_ch_endpt(const char *client_name, const char *endpt_name, struct lyd_node **config)
Deletes a Call Home endpoint from the YANG data.
int nc_server_config_del_ssh_hostkey(const struct ly_ctx *ctx, const char *endpt_name, const char *hostkey_name, struct lyd_node **config)
Deletes a hostkey from the YANG data.
int nc_server_config_del_keystore_cert(const char *asym_key_name, const char *cert_name, struct lyd_node **config)
Deletes a keystore&#39;s certificate from the YANG data.
int nc_server_config_add_ssh_user_interactive(const struct ly_ctx *ctx, const char *endpt_name, const char *user_name, struct lyd_node **config)
Creates new YANG configuration data nodes for an SSH user&#39;s keyboard interactive authentication metho...
int nc_server_config_del_tls_keystore_ref(const char *endpt_name, struct lyd_node **config)
Deletes a TLS server certificate keystore reference from the YANG data.
int nc_server_config_add_ch_tls_ca_cert(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name, const char *cert_name, const char *cert_path, struct lyd_node **config)
Creates new YANG configuration data nodes for a client certificate authority (trust-anchor) certifica...
int nc_server_config_add_tls_client_cert_truststore_ref(const struct ly_ctx *ctx, const char *endpt_name, const char *cert_bag_ref, struct lyd_node **config)
Creates new YANG configuration data nodes for a truststore reference to a set of client (end-entity) ...
int nc_server_config_add_ssh_user_authkey(const struct ly_ctx *ctx, const char *endpt_name, const char *user_name, struct lyd_node **config)
Creates new YANG configuration data nodes for an SSH user that will use system&#39;s authorized_keys to a...
int nc_server_config_del_keystore_asym_key(const char *asym_key_name, struct lyd_node **config)
Deletes a keystore&#39;s asymmetric key from the YANG data.
int nc_server_config_ch_del_ssh_user_authkey(const char *client_name, const char *endpt_name, const char *user_name, struct lyd_node **config)
Deletes a Call Home SSH user&#39;s authorized_keys method from the YANG data.
int nc_server_config_del_tls_endpoint_client_ref(const char *endpt_name, struct lyd_node **config)
Deletes reference to another TLS endpoint&#39;s users from the YANG data.
int nc_server_config_add_ch_tls_keystore_ref(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name, const char *asym_key_ref, const char *cert_ref, struct lyd_node **config)
Creates new YANG configuration data nodes for a keystore reference to the Call Home TLS server&#39;s cert...
int nc_server_config_add_truststore_cert(const struct ly_ctx *ctx, const char *cert_bag_name, const char *cert_name, const char *cert_path, struct lyd_node **config)
Creates new YANG data nodes for a certificate in the truststore.
int nc_server_config_add_ch_anchor_time(const struct ly_ctx *ctx, const char *client_name, const char *anchor_time, struct lyd_node **config)
Creates new YANG configuration data nodes for the anchor time parameter of the Call Home periodic con...
int nc_server_config_add_ch_ssh_user_interactive(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name, const char *user_name, struct lyd_node **config)
Creates new YANG configuration data nodes for a Call Home SSH user&#39;s keyboard interactive authenticat...
int nc_server_config_add_ch_ssh_hostkey(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name, const char *hostkey_name, const char *privkey_path, const char *pubkey_path, struct lyd_node **config)
Creates new YANG data nodes for a Call Home SSH hostkey.
int nc_server_config_add_ch_ssh_user_authkey(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name, const char *user_name, struct lyd_node **config)
Creates new YANG configuration data nodes for a Call Home SSH user that will use system&#39;s authorized_...
int nc_server_config_del_tls_client_cert_truststore_ref(const char *endpt_name, struct lyd_node **config)
Deletes a client (end-entity) certificates truststore reference from the YANG data.
int nc_server_config_del_ch_tls_ca_cert_truststore_ref(const char *client_name, const char *endpt_name, struct lyd_node **config)
Deletes a Call Home client certificate authority (trust-anchor) certificates truststore reference fro...
int nc_server_config_del_tls_client_cert(const char *endpt_name, const char *cert_name, struct lyd_node **config)
Deletes a client (end-entity) certificate from the YANG data.
int nc_server_config_del_ssh_user_authkey(const char *endpt_name, const char *user_name, struct lyd_node **config)
Deletes an SSH user&#39;s authorized_keys method from the YANG data.
int nc_server_config_del_ch_tls_client_cert(const char *client_name, const char *endpt_name, const char *cert_name, struct lyd_node **config)
Deletes a Call Home client (end-entity) certificate from the YANG data.
int nc_server_config_add_keystore_asym_key(const struct ly_ctx *ctx, NC_TRANSPORT_IMPL ti, const char *asym_key_name, const char *privkey_path, const char *pubkey_path, struct lyd_node **config)
Creates new YANG data nodes for an asymmetric key in the keystore.
int nc_server_config_oper_get_hostkey_algs(const struct ly_ctx *ctx, struct lyd_node **hostkey_algs)
Gets the hostkey algorithms supported by the server from the &#39;iana-ssh-public-key-algs&#39; YANG module...
int nc_server_config_del_ch_ssh_user_password(const char *client_name, const char *endpt_name, const char *user_name, struct lyd_node **config)
Deletes a Call Home SSH user&#39;s password from the YANG data.
int nc_server_config_add_ch_address_port(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name, NC_TRANSPORT_IMPL transport, const char *address, const char *port, struct lyd_node **config)
Creates new YANG configuration data nodes for a Call Home client&#39;s address and port.
int nc_server_config_add_ch_tls_server_cert(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name, const char *privkey_path, const char *pubkey_path, const char *cert_path, struct lyd_node **config)
Creates new YANG configuration data nodes for a Call Home server&#39;s certificate.
int nc_server_config_del_ssh_user(const char *endpt_name, const char *user_name, struct lyd_node **config)
Deletes an SSH user from the YANG data.
int nc_server_config_del_tls_ca_cert_truststore_ref(const char *endpt_name, struct lyd_node **config)
Deletes a client certificate authority (trust-anchor) certificates truststore reference from the YANG...
int nc_server_config_del_ssh_user_pubkey(const char *endpt_name, const char *user_name, const char *pubkey_name, struct lyd_node **config)
Deletes an SSH user&#39;s public key from the YANG data.
int nc_server_config_add_ch_persistent(const struct ly_ctx *ctx, const char *client_name, struct lyd_node **config)
Creates new YANG configuration data nodes for the Call Home persistent connection type...
int nc_server_config_add_tls_client_cert(const struct ly_ctx *ctx, const char *endpt_name, const char *cert_name, const char *cert_path, struct lyd_node **config)
Creates new YANG configuration data nodes for a client&#39;s (end-entity) certificate.
int nc_server_config_del_tls_server_cert(const char *endpt_name, struct lyd_node **config)
Deletes the server&#39;s certificate from the YANG data.
int nc_server_config_add_tls_server_cert(const struct ly_ctx *ctx, const char *endpt_name, const char *privkey_path, const char *pubkey_path, const char *cert_path, struct lyd_node **config)
Creates new YANG configuration data nodes for a server&#39;s certificate.
int nc_server_config_del_ch_tls_ca_cert(const char *client_name, const char *endpt_name, const char *cert_name, struct lyd_node **config)
Deletes a Call Home client certificate authority (trust-anchor) certificate from the YANG data...
int nc_server_config_del_ch_tls_keystore_ref(const char *client_name, const char *endpt_name, struct lyd_node **config)
Deletes a TLS server certificate keystore reference from the YANG data.
int nc_server_config_del_ch_ssh_user_pubkey(const char *client_name, const char *endpt_name, const char *user_name, const char *pubkey_name, struct lyd_node **config)
Deletes a Call Home SSH user&#39;s public key from the YANG data.
int nc_server_config_add_ch_ssh_user_password(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name, const char *user_name, const char *password, struct lyd_node **config)
Creates new YANG data nodes for a Call Home SSH user&#39;s password authentication method.
int nc_server_config_add_ch_idle_timeout(const struct ly_ctx *ctx, const char *client_name, uint16_t idle_timeout, struct lyd_node **config)
Creates new YANG configuration data nodes for the idle timeout parameter of the Call Home periodic co...
int nc_server_config_add_ch_period(const struct ly_ctx *ctx, const char *client_name, uint16_t period, struct lyd_node **config)
Creates new YANG configuration data nodes for the period parameter of the Call Home periodic connecti...
int nc_server_config_add_ch_ssh_keystore_ref(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name, const char *hostkey_name, const char *keystore_reference, struct lyd_node **config)
Creates new YANG data nodes for a reference to an asymmetric key located in the keystore.
int nc_server_config_add_ssh_keystore_ref(const struct ly_ctx *ctx, const char *endpt_name, const char *hostkey_name, const char *keystore_reference, struct lyd_node **config)
Creates new YANG data nodes for a reference to an asymmetric key located in the keystore.
int nc_server_config_add_ssh_user_password(const struct ly_ctx *ctx, const char *endpt_name, const char *user_name, const char *password, struct lyd_node **config)
Creates new YANG configuration data nodes for an SSH user&#39;s password authentication method...
int nc_server_config_del_tls_ctn(const char *endpt_name, uint32_t id, struct lyd_node **config)
Deletes a cert-to-name entry from the YANG data.
int nc_server_config_del_ch_reconnect_strategy(const char *client_name, struct lyd_node **config)
Resets the values of the Call Home reconnect strategy nodes to their defaults.
int nc_server_config_del_ssh_user_interactive(const char *endpt_name, const char *user_name, struct lyd_node **config)
Deletes an SSH user&#39;s keyboard interactive authentication from the YANG data.
int nc_server_config_del_truststore_pubkey(const char *pub_bag_name, const char *pubkey_name, struct lyd_node **config)
Deletes a truststore&#39;s public key from the YANG data.
int nc_server_config_del_ch_client(const char *client_name, struct lyd_node **config)
Deletes a Call Home client from the YANG data.
int nc_server_config_add_truststore_pubkey(const struct ly_ctx *ctx, const char *pub_bag_name, const char *pubkey_name, const char *pubkey_path, struct lyd_node **config)
Creates new YANG data nodes for a public key in the truststore.
int nc_server_config_oper_get_encryption_algs(const struct ly_ctx *ctx, struct lyd_node **encryption_algs)
Gets the encryption algorithms supported by the server from the &#39;iana-ssh-encryption-algs&#39; YANG modul...
int nc_server_config_add_ch_ssh_truststore_ref(const struct ly_ctx *ctx, const char *client_name, const char *endpt_name, const char *user_name, const char *truststore_reference, struct lyd_node **config)
Creates new YANG data nodes for a reference to a public key bag located in the truststore.
int nc_server_config_add_address_port(const struct ly_ctx *ctx, const char *endpt_name, NC_TRANSPORT_IMPL transport, const char *address, uint16_t port, struct lyd_node **config)
Creates new YANG configuration data nodes for address and port.
int nc_server_config_del_truststore_cert(const char *cert_bag_name, const char *cert_name, struct lyd_node **config)
Deletes a truststore&#39;s certificate from the YANG data.
int nc_server_config_del_ch_ssh_keystore_ref(const char *client_name, const char *endpt_name, const char *hostkey_name, struct lyd_node **config)
Deletes a Call Home keystore reference from the YANG data.
int nc_server_config_add_ch_reconnect_strategy(const struct ly_ctx *ctx, const char *client_name, NC_CH_START_WITH start_with, uint16_t max_wait, uint8_t max_attempts, struct lyd_node **config)
Creates new YANG configuration data nodes for the Call Home reconnect strategy.
int nc_server_config_add_ssh_endpoint_client_ref(const struct ly_ctx *ctx, const char *endpt_name, const char *referenced_endpt, struct lyd_node **config)
Creates new YANG configuration data nodes, which will be a reference to another SSH endpoint&#39;s users...
int nc_server_config_add_keystore_cert(const struct ly_ctx *ctx, const char *asym_key_name, const char *cert_name, const char *cert_path, struct lyd_node **config)
Creates new YANG data nodes for a certificate in the keystore.
NC_TLS_CTN_MAPTYPE
Enumeration of cert-to-name mapping types.
Definition: session.h:51
int nc_server_config_add_tls_ctn(const struct ly_ctx *ctx, const char *endpt_name, uint32_t id, const char *fingerprint, NC_TLS_CTN_MAPTYPE map_type, const char *name, struct lyd_node **config)
Creates new YANG configuration data nodes for a cert-to-name entry.
NC_CH_START_WITH
Enumeration of Call Home client priority policy.
Definition: session.h:111
int nc_server_config_del_ch_idle_timeout(const char *client_name, struct lyd_node **config)
Deletes the Call Home idle timeout parameter of the periodic connection type from the YANG data...
int nc_server_config_del_ch_tls_server_cert(const char *client_name, const char *endpt_name, struct lyd_node **config)
Deletes a Call Home server certificate from the YANG data.
int nc_server_config_del_ssh_endpoint_client_ref(const char *endpt_name, struct lyd_node **config)
Deletes reference to another SSH endpoint&#39;s users from the YANG data.
int nc_server_config_del_ch_period(const char *client_name, struct lyd_node **config)
Deletes the Call Home period parameter of the periodic connection type from the YANG data...
int nc_server_config_del_ssh_keystore_ref(const char *endpt_name, const char *hostkey_name, struct lyd_node **config)
Deletes a keystore reference from the YANG data.
int nc_server_config_del_ch_ssh_hostkey(const char *client_name, const char *endpt_name, const char *hostkey_name, struct lyd_node **config)
Deletes a Call Home hostkey from the YANG data.
int nc_server_config_del_ch_tls_client_cert_truststore_ref(const char *client_name, const char *endpt_name, struct lyd_node **config)
Deletes a Call Home client (end-entity) certificates truststore reference from the YANG data...
int nc_server_config_del_ch_ssh_truststore_ref(const char *client_name, const char *endpt_name, const char *user_name, struct lyd_node **config)
Deletes a Call Home SSH truststore reference from the YANG data.
int nc_server_config_del_ssh_user_password(const char *endpt_name, const char *user_name, struct lyd_node **config)
Deletes an SSH user&#39;s password from the YANG data.
int nc_server_config_del_endpt(const char *endpt_name, struct lyd_node **config)
Deletes an endpoint from the YANG data.