2009-03-04 02:42:31 +00:00
|
|
|
#!/usr/bin/env perl
|
2021-06-03 08:37:05 +02:00
|
|
|
|
2014-02-20 10:53:11 +11:00
|
|
|
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2012-06-29 11:39:47 +10:00
|
|
|
#
|
2009-03-04 02:42:31 +00:00
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
2021-06-03 08:37:05 +02:00
|
|
|
#
|
2009-03-04 02:42:31 +00:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-02-23 09:53:12 +01:00
|
|
|
#
|
2009-03-04 02:42:31 +00:00
|
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
|
|
# information regarding copyright ownership.
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
2020-05-21 11:50:56 +02:00
|
|
|
print "#pragma once\n";
|
|
|
|
print "#define TRUST_ANCHORS \"\\\n";
|
|
|
|
|
|
|
|
my $fn = shift or die "Usage: $0 FILENAME\n";
|
|
|
|
open(my $fh, '<', $fn) or die "cannot open file $ARGV[1]\n";
|
|
|
|
while (<$fh>) {
|
2009-03-04 02:42:31 +00:00
|
|
|
chomp;
|
|
|
|
s/\"/\\\"/g;
|
2020-05-21 11:50:56 +02:00
|
|
|
print $_ . "\\n\\\n";
|
2009-03-04 02:42:31 +00:00
|
|
|
}
|
2020-05-21 11:50:56 +02:00
|
|
|
close($fh);
|
|
|
|
print "\"\n";
|