mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-14 22:30:01 -04:00
add header guard when generating bind.keys.h
(cherry picked from commit bfbe6925df)
This commit is contained in:
parent
982ddf4012
commit
b8aec550c4
2 changed files with 6 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -9,8 +9,6 @@
|
|||
# See the COPYRIGHT file distributed with this work for additional
|
||||
# information regarding copyright ownership.
|
||||
|
||||
# $Id: bindkeys.pl,v 1.7 2011/01/04 23:47:13 tbox Exp $
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
|
|
@ -31,6 +29,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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue