server ssh UPDATE client auth with ED25519 keys
diff --git a/src/config_new.c b/src/config_new.c
index f8db1da..e08c58d 100644
--- a/src/config_new.c
+++ b/src/config_new.c
@@ -251,6 +251,8 @@
ret = lyd_new_term(new_tree, NULL, "private-key-format", "ietf-crypto-types:rsa-private-key-format", 0, NULL);
} else if (EVP_PKEY_is_a(priv_pkey, "EC")) {
ret = lyd_new_term(new_tree, NULL, "private-key-format", "ietf-crypto-types:ec-private-key-format", 0, NULL);
+ } else if (EVP_PKEY_is_a(priv_pkey, "ED25519")) {
+ ret = lyd_new_term(new_tree, NULL, "private-key-format", "libnetconf2-netconf-server:ed25519-private-key-format", 0, NULL);
} else {
ERR(NULL, "Private key type not supported.");
ret = 1;
@@ -619,6 +621,8 @@
start += strlen("ecdsa-sha2-nistp384 ");
} else if (!strncmp(buffer, "ecdsa-sha2-nistp521 ", 20)) {
start += strlen("ecdsa-sha2-nistp521 ");
+ } else if (!strncmp(buffer, "ssh-ed25519 ", 12)) {
+ start += strlen("ssh-ed25519 ");
} else {
ERR(NULL, "Unknown public key type.");
ret = 1;