Skip to content

Commit 4e82fba

Browse files
committed
libnetconf2: Add Netconf workaround to not get netopeer2 to care about all keys in keystore
Without this patch will netopeer2 fail to setup because there exist a key of unknown type in the keystore, WireGuard keys.
1 parent d9af63c commit 4e82fba

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/src/server_config.c b/src/server_config.c
2+
index 905f6aa..a893eb5 100644
3+
--- a/src/server_config.c
4+
+++ b/src/server_config.c
5+
@@ -1851,8 +1851,8 @@ nc_server_config_private_key_format(const struct lyd_node *node, enum nc_operati
6+
7+
privkey_type = nc_server_config_get_private_key_type(format);
8+
if (privkey_type == NC_PRIVKEY_FORMAT_UNKNOWN) {
9+
- ERR(NULL, "Unknown private key format.");
10+
- ret = 1;
11+
+ DBG(NULL, "Unknown private key format.");
12+
+ ret = 0;
13+
goto cleanup;
14+
}
15+

0 commit comments

Comments
 (0)