mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
NSEC3PARAM salt can be - https://github.com/virtualmin/virtualmin-gpl/issues/895
This commit is contained in:
@ -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") {
|
||||
|
@ -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)." ...";
|
||||
|
@ -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)
|
||||
|
@ -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+$/ ||
|
||||
|
Reference in New Issue
Block a user