From 1a7002b18c6e8473b4021811b6648176e4854b0f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 8 Feb 2020 16:27:56 +0000 Subject: [PATCH] Limit SSHFP records to RSA keys --- bin/mksshfp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/mksshfp b/bin/mksshfp index 7c0f518..362cd87 100755 --- a/bin/mksshfp +++ b/bin/mksshfp @@ -18,8 +18,7 @@ if (-f "/etc/ssh/ssh_known_hosts") my $type = $3; my $value = $4; - if ($type == 2 && - ($algorithm == 3 || $algorithm == 4)) + if ($type == 2 && $algorithm == 1) { print SSHFP_JS qq| SSHFP("${host}", ${algorithm}, ${type}, "${value}"),\n|; } -- 2.39.5