This commit is contained in:
Jamie Cameron
2024-09-06 19:00:42 -07:00
parent 4b3acba3f8
commit 1f6697e05f
4 changed files with 10 additions and 4 deletions

View File

@ -1357,7 +1357,8 @@ elsif ($type eq "NSEC3PARAM") {
&ui_textbox("value2", $v[2], 4));
print &ui_table_row($text{'value_NSEC3PARAM4'},
&ui_textbox("value3", $v[3], 20));
&ui_opt_textbox("value3", $v[3] eq "-" ? "" : $v[3], 20,
$text{'value_NSEC3PARAM4_none'}));
}
elsif ($type eq "CAA") {

View File

@ -251,6 +251,10 @@ for(my $i=0; $i<@_; $i++) {
$v = $text{'value_caa_'.$v} || $v;
}
}
elsif ($in{'type'} eq "NSEC3PARAM" && $j == 3) {
$v = $text{'value_NSEC3PARAM4_none'}
if ($v eq "-");
}
}
if (length($v) > 80) {
$v = substr($v, 0, 80)." ...";

View File

@ -496,6 +496,7 @@ value_NSEC3PARAM1=Hash algorithm
value_NSEC3PARAM2=NSEC3 flags
value_NSEC3PARAM3=Number of hash iterations
value_NSEC3PARAM4=Salt string
value_NSEC3PARAM4_none=None
value_delegated=Delegated zone
value_notdelegated=Other zone
value_other=Values (one per line)

View File

@ -450,11 +450,11 @@ else {
# Save DNSSEC parameters
$in{'value2'} =~ /^\d+$/ ||
&error($text{'edit_ensec3value2'});
$in{'value3'} =~ /^[a-zA-Z0-9\+\/]+$/ ||
$in{'value3_def'} || $in{'value3'} =~ /^[a-zA-Z0-9\+\/]+$/ ||
&error($text{'edit_ensec3value3'});
$vals = join(" ", "(", $in{'value0'}, $in{'value1'},
$in{'value2'},
$in{'value3'}, ")");
$in{'value2'},
($in{'value3_def'} ? '-' : $in{'value3'}), ")");
}
elsif ($in{'type'} eq 'CAA') {
$in{'value2'} =~ /^\S+$/ ||