libnetconf2  4.7.5
NETCONF server and client library in C.
server_config_tls.h File Reference

libnetconf2 server TLS configuration More...

#include <stdarg.h>
#include <stdint.h>
#include <libyang/libyang.h>
#include "session.h"
Include dependency graph for server_config_tls.h:

Go to the source code of this file.

Functions

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) certificate. More...
 
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 certificate authority (trust-anchor) certificates. More...
 
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's (end-entity) certificate. More...
 
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 (end-entity) certificates. More...
 
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. More...
 
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's certificate. More...
 
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's certificate. More...
 
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) certificate. More...
 
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 authority (trust-anchor) certificates. More...
 
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's (end-entity) certificate. More...
 
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) certificates. More...
 
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. More...
 
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's certificates. More...
 
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's certificate. More...
 
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's certificate. More...
 
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. More...
 
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 from the YANG data. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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 data. More...
 
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. More...
 
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. More...
 
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. More...
 
int nc_server_config_del_tls_endpoint_client_ref (const char *endpt_name, struct lyd_node **config)
 Deletes reference to another TLS endpoint's users from the YANG data. More...
 
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. More...
 
int nc_server_config_del_tls_server_cert (const char *endpt_name, struct lyd_node **config)
 Deletes the server's certificate from the YANG data. More...
 

Detailed Description

libnetconf2 server TLS configuration

Author
Roman Janota janot.nosp@m.a@ce.nosp@m.snet..nosp@m.cz
Michal Vasko mvask.nosp@m.o@ce.nosp@m.snet..nosp@m.cz

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 server_config_tls.h.