X-Git-Url: https://git.openstreetmap.org/dns.git/blobdiff_plain/9883347e9cacf46736559f287463b955e51fea5c..92c136c904be9197783db936f54082355730d300:/bin/mksshfp diff --git a/bin/mksshfp b/bin/mksshfp index e4bc8ed..7c0f518 100755 --- a/bin/mksshfp +++ b/bin/mksshfp @@ -18,7 +18,11 @@ if (-f "/etc/ssh/ssh_known_hosts") my $type = $3; my $value = $4; - print SSHFP_JS qq| SSHFP("${host}", ${algorithm}, ${type}, "${value}"),\n|; + if ($type == 2 && + ($algorithm == 3 || $algorithm == 4)) + { + print SSHFP_JS qq| SSHFP("${host}", ${algorithm}, ${type}, "${value}"),\n|; + } } else {