X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincctl.c;h=7a3195e58f5d3c8e998fb11896b54a4c0dd54d64;hp=5f2b135103f2b761313aabe3f1c66c5228617d8e;hb=666718998eaa044f6f25fe99810a78dca8471393;hpb=f0e7e6b03e34e69cac5b01a2d943ad3b9b59d36c diff --git a/src/tincctl.c b/src/tincctl.c index 5f2b1351..7a3195e5 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -246,7 +246,7 @@ static void disable_old_keys(const char *filename, const char *what) { while(fgets(buf, sizeof buf, r)) { if(!block && !strncmp(buf, "-----BEGIN ", 11)) { - if((strstr(buf, " RSA ") && strstr(what, "RSA"))) { + if((strstr(buf, " ED25519 ") && strstr(what, "Ed25519")) || (strstr(buf, " RSA ") && strstr(what, "RSA"))) { disabled = true; block = true; }