Compare commits
No commits in common. "fc2031eb7ca903b8e3bc59d0731cb68bcf6a530f" and "7a3e5e472a7fa8e9fdad2aa10bb53f344b4d66ab" have entirely different histories.
fc2031eb7c
...
7a3e5e472a
@ -40,9 +40,9 @@ my %supported_types = (
|
||||
MX => "yes",
|
||||
NS => "yes",
|
||||
PTR => "yes",
|
||||
SSHFP => "yes",
|
||||
SSHFP => "not yet implemented",
|
||||
SRV => "yes",
|
||||
TLSA => "yes",
|
||||
TLSA => "not yet implemented",
|
||||
TXT => "yes",
|
||||
);
|
||||
sub is_unsupported($) {
|
||||
@ -136,17 +136,6 @@ sub format_record($$$$) {
|
||||
$record->{caa_property} = $property;
|
||||
$record->{caa_tag} = $property;
|
||||
$record->{data} = $data;
|
||||
} elsif ($type eq 'SSHFP') {
|
||||
my ($algo, $keytype, $data) = split(/\s+/, $value);
|
||||
$record->{sshfp_type} = $keytype;
|
||||
$record->{sshfp_algorithm} = $algo;
|
||||
$record->{data} = $data;
|
||||
} elsif ($type eq 'TLSA') {
|
||||
my ($usage, $selector, $matching, $data) = split(/\s+/, $value);
|
||||
$record->{tlsa_usage} = $usage;
|
||||
$record->{tlsa_selector} = $selector;
|
||||
$record->{tlsa_matching} = $matching;
|
||||
$record->{data} = $data;
|
||||
}
|
||||
|
||||
return $record;
|
||||
@ -169,19 +158,6 @@ sub reformat_data($$) {
|
||||
$data->{caa_property} || $data->{caa_tag},
|
||||
$data->{data}
|
||||
);
|
||||
} elsif($type eq 'SSHFP') {
|
||||
return sprintf('%d %d %s',
|
||||
$data->{sshfp_algorithm},
|
||||
$data->{sshfp_type},
|
||||
$data->{data},
|
||||
);
|
||||
} elsif($type eq 'TLSA') {
|
||||
return sprintf('%d %d %d %s',
|
||||
$data->{tlsa_usage},
|
||||
$data->{tlsa_selector},
|
||||
$data->{tlsa_matching},
|
||||
$data->{data},
|
||||
);
|
||||
}
|
||||
|
||||
return $data->{data};
|
||||
|
Loading…
x
Reference in New Issue
Block a user