@@ -40,7 +40,7 @@ typedef enum {
4040 * @param[in] format Value of the YANG identityref.
4141 * @return Private key format on success, NC_PRIVKEY_FORMAT_UNKNOWN otherwise.
4242 */
43- NC_PRIVKEY_FORMAT nc_server_config_get_private_key_type (const char * format );
43+ enum nc_privkey_format nc_server_config_get_private_key_type (const char * format );
4444
4545#endif /* NC_ENABLED_SSH_TLS */
4646
@@ -73,7 +73,7 @@ int nc_server_config_realloc(const char *key_value, void **ptr, size_t size, uin
7373 * @param[in] module Module for which to parse the data - either ietf-netconf-server, ietf-keystore or ietf-truststore
7474 * @return 0 on success, 1 on error.
7575 */
76- int nc_server_config_parse_tree (const struct lyd_node * node , NC_OPERATION parent_op , NC_MODULE module );
76+ int nc_server_config_parse_tree (const struct lyd_node * node , enum nc_operation parent_op , NC_MODULE module );
7777
7878/**
7979 * @brief Configures the listen subtree in the ietf-netconf-server module.
@@ -82,7 +82,7 @@ int nc_server_config_parse_tree(const struct lyd_node *node, NC_OPERATION parent
8282 * @param[in] op Operation to be done on the subtree. Only does something if the operation is NC_OP_DELETE.
8383 * @return 0 on success, 1 on error.
8484 */
85- int nc_server_config_listen (const struct lyd_node * node , NC_OPERATION op );
85+ int nc_server_config_listen (const struct lyd_node * node , enum nc_operation op );
8686
8787/**
8888 * @brief Configures the Call Home subtree in the ietf-netconf-server module.
@@ -91,7 +91,7 @@ int nc_server_config_listen(const struct lyd_node *node, NC_OPERATION op);
9191 * @param[in] op Operation to be done on the subtree. Only does something if the operation is NC_OP_DELETE.
9292 * @return 0 on success, 1 on error.
9393 */
94- int nc_server_config_ch (const struct lyd_node * node , NC_OPERATION op );
94+ int nc_server_config_ch (const struct lyd_node * node , enum nc_operation op );
9595
9696#ifdef NC_ENABLED_SSH_TLS
9797
@@ -104,7 +104,7 @@ int nc_server_config_ch(const struct lyd_node *node, NC_OPERATION op);
104104 * @param[in] op Operation saying what to do with the top-level node.
105105 * @return 0 either if keystore is not present or if it is and application was successful, 1 on error.
106106 */
107- int nc_server_config_fill_keystore (const struct lyd_node * data , NC_OPERATION op );
107+ int nc_server_config_fill_keystore (const struct lyd_node * data , enum nc_operation op );
108108
109109/**
110110 * @brief Parse the given node, which belongs to the ietf-keystore subtree, and apply it's data to the server's configuration.
@@ -113,7 +113,7 @@ int nc_server_config_fill_keystore(const struct lyd_node *data, NC_OPERATION op)
113113 * @param[in] op Operation saying what to do with the node.
114114 * @return 0 on success, 1 on error.
115115 */
116- int nc_server_config_parse_keystore (const struct lyd_node * node , NC_OPERATION op );
116+ int nc_server_config_parse_keystore (const struct lyd_node * node , enum nc_operation op );
117117
118118/**
119119 * @brief Configures the keystore subtree in the ietf-keystore module.
@@ -122,7 +122,7 @@ int nc_server_config_parse_keystore(const struct lyd_node *node, NC_OPERATION op
122122 * @param[in] op Operation to be done on the subtree. Only does something if the operation is NC_OP_DELETE.
123123 * @return 0.
124124 */
125- int nc_server_config_ks_keystore (const struct lyd_node * node , NC_OPERATION op );
125+ int nc_server_config_ks_keystore (const struct lyd_node * node , enum nc_operation op );
126126
127127/** TRUSTSTORE **/
128128
@@ -133,7 +133,7 @@ int nc_server_config_ks_keystore(const struct lyd_node *node, NC_OPERATION op);
133133 * @param[in] op Operation saying what to do with the top-level node.
134134 * @return 0 either if truststore is not present or if it is and application was successful, 1 on error.
135135 */
136- int nc_server_config_fill_truststore (const struct lyd_node * data , NC_OPERATION op );
136+ int nc_server_config_fill_truststore (const struct lyd_node * data , enum nc_operation op );
137137
138138/**
139139 * @brief Parse the given node, which belongs to the ietf-truststore subtree, and apply it's data to the server's configuration.
@@ -142,7 +142,7 @@ int nc_server_config_fill_truststore(const struct lyd_node *data, NC_OPERATION o
142142 * @param[in] op Operation saying what to do with the node.
143143 * @return 0 on success, 1 on error.
144144 */
145- int nc_server_config_parse_truststore (const struct lyd_node * node , NC_OPERATION op );
145+ int nc_server_config_parse_truststore (const struct lyd_node * node , enum nc_operation op );
146146
147147/**
148148 * @brief Configures the truststore subtree in the ietf-truststore module.
@@ -151,7 +151,7 @@ int nc_server_config_parse_truststore(const struct lyd_node *node, NC_OPERATION
151151 * @param[in] op Operation to be done on the subtree. Only does something if the operation is NC_OP_DELETE.
152152 * @return 0.
153153 */
154- int nc_server_config_ts_truststore (const struct lyd_node * node , NC_OPERATION op );
154+ int nc_server_config_ts_truststore (const struct lyd_node * node , enum nc_operation op );
155155
156156/** LIBNETCONF2-NETCONF-SERVER **/
157157
@@ -162,7 +162,7 @@ int nc_server_config_ts_truststore(const struct lyd_node *node, NC_OPERATION op)
162162 * @param[in] op Operation to be done on the subtree. Only does something if the operation is NC_OP_DELETE.
163163 * @return 0 on success, 1 on error.
164164 */
165- int nc_server_config_ln2_netconf_server (const struct lyd_node * node , NC_OPERATION op );
165+ int nc_server_config_ln2_netconf_server (const struct lyd_node * node , enum nc_operation op );
166166
167167#endif /* NC_ENABLED_SSH_TLS */
168168
0 commit comments