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
{