From cbbeafab2a40cf3a1a0f84874e98855be4ec4407 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 20 Dec 2022 12:05:15 +0100 Subject: [PATCH] dns/rfc2136: the whole legacy key format is madness The original ".key" file just disappears with all its knobs and features. --- .../src/etc/inc/plugins.inc.d/rfc2136.inc | 39 +++++-------------- 1 file changed, 10 insertions(+), 29 deletions(-) diff --git a/dns/rfc2136/src/etc/inc/plugins.inc.d/rfc2136.inc b/dns/rfc2136/src/etc/inc/plugins.inc.d/rfc2136.inc index b399dfe76..65d53f692 100644 --- a/dns/rfc2136/src/etc/inc/plugins.inc.d/rfc2136.inc +++ b/dns/rfc2136/src/etc/inc/plugins.inc.d/rfc2136.inc @@ -120,35 +120,16 @@ function rfc2136_configure_do($verbose = false, $int = '', $updatehost = '', $fo $hostname .= "."; } - /* write private key file - this is dumb - public and private keys are the same for HMAC-MD5, - but nsupdate insists on having both */ - $fd = fopen("/var/etc/K{$i}{$keyname}+157+00000.private", "w"); - $privkey = <<