server config UPDATE dynamic endpt references
Get endpoint references dynamically based on referenced endpt name.
Also some tls fixes.
diff --git a/src/server_config_util_tls.c b/src/server_config_util_tls.c
index 66b2559..047a6d5 100644
--- a/src/server_config_util_tls.c
+++ b/src/server_config_util_tls.c
@@ -777,7 +777,7 @@
NC_CHECK_ARG_RET(NULL, ctx, endpt_name, referenced_endpt, config, 1);
return nc_server_config_create(ctx, config, referenced_endpt, "/ietf-netconf-server:netconf-server/listen/endpoint[name='%s']/tls/tls-server-parameters/"
- "client-authentication/libnetconf2-netconf-server:endpoint-client-auth", endpt_name);
+ "client-authentication/libnetconf2-netconf-server:endpoint-reference", endpt_name);
}
API int
@@ -786,5 +786,5 @@
NC_CHECK_ARG_RET(NULL, endpt_name, config, 1);
return nc_server_config_delete(config, "/ietf-netconf-server:netconf-server/listen/endpoint[name='%s']/tls/tls-server-parameters/"
- "client-authentication/libnetconf2-netconf-server:endpoint-client-auth", endpt_name);
+ "client-authentication/libnetconf2-netconf-server:endpoint-reference", endpt_name);
}