dns/rfc2136: probable fix for #3187

This could be more elegant in some other format that is allowed but
someone else will have to open a reasonable PR about it.  I don't
trust the number change alone in the PR as bind said it would try
to "unbreak" it again breaking the plugin if we would...
This commit is contained in:
Franco Fichtner
2022-12-15 16:28:51 +01:00
parent 72bbf3e4af
commit de660623ed
2 changed files with 5 additions and 5 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
PLUGIN_NAME= rfc2136
PLUGIN_VERSION= 1.6
PLUGIN_REVISION= 3
PLUGIN_VERSION= 1.7
PLUGIN_COMMENT= RFC-2136 Support
PLUGIN_MAINTAINER= franco@opnsense.org
PLUGIN_DEPENDS= bind-tools
@@ -125,9 +125,10 @@ function rfc2136_configure_do($verbose = false, $int = '', $updatehost = '', $fo
but nsupdate insists on having both */
$fd = fopen("/var/etc/K{$i}{$keyname}+157+00000.private", "w");
$privkey = <<<EOD
Private-key-format: v1.2
Algorithm: 157 (HMAC)
Key: {$dnsupdate['keydata']}
key "{$keyname}" {
algorithm hmac-md5;
secret "{$dnsupdate['keydata']}";
};
EOD;
fwrite($fd, $privkey);