]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add header guard when generating bind.keys.h
authorEvan Hunt <each@isc.org>
Tue, 20 Mar 2018 09:12:37 +0000 (09:12 +0000)
committerEvan Hunt <each@isc.org>
Sun, 22 Apr 2018 20:00:47 +0000 (13:00 -0700)
(cherry picked from commit bfbe6925dfa5997a51086ecf7004c726b8331954)
(cherry picked from commit f7755696a59c6dd1f1718419f5bbe3d632693f75)

bin/named/bind.keys.h
bin/named/bindkeys.pl

index 0c4b4771c04cafbccca9f8b7cea3079643630ed8..746dfa289dcce1035830a160e2d2ab0c0979d979 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef BIND_KEYS_H
+#define BIND_KEYS_H 1
 #define TRUSTED_KEYS "\
 # The bind.keys file is used to override the built-in DNSSEC trust anchors\n\
 # which are included as part of BIND 9.  The only trust anchors it contains\n\
@@ -103,3 +105,4 @@ managed-keys {\n\
                 R1AkUTV74bU=\";\n\
 };\n\
 "
+#endif /* BIND_KEYS_H */
index 1a02938a55d0f264b3cadc04c39f03b25aba9702..baafd5a6640130d2721766f6c6a5fdf5e0d89cf0 100755 (executable)
@@ -34,6 +34,9 @@ $lines =~ s/managed-keys/trusted-keys/;
 $lines =~ s/\s+initial-key//g;
 my $tkey = '#define TRUSTED_KEYS "\\' . "\n" . $lines . "\"\n";
 
+print "#ifndef BIND_KEYS_H\n";
+print "#define BIND_KEYS_H 1\n";
 print $tkey;
 print "\n";
 print $mkey;
+print "#endif /* BIND_KEYS_H */\n";