]> git.openstreetmap.org Git - dns.git/blobdiff - bin/mksshfp
Limit SSHFP records to RSA keys
[dns.git] / bin / mksshfp
index 7c0f518034332dd72c1111ea9bb6f79bf12068ff..362cd878f0be20f58f9e4c9b0f07f52ce600aac7 100755 (executable)
@@ -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|;
             }