xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/ecdsa/setup.sh (revision 2718af68c3efc72c9769069b5c7f9ed36f6b9def)
1#!/bin/sh -e
2#
3# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
4#
5# This Source Code Form is subject to the terms of the Mozilla Public
6# License, v. 2.0. If a copy of the MPL was not distributed with this
7# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8#
9# See the COPYRIGHT file distributed with this work for additional
10# information regarding copyright ownership.
11
12SYSTEMTESTTOP=..
13. $SYSTEMTESTTOP/conf.sh
14
15set -e
16
17if $SHELL ../testcrypto.sh ecdsap384sha384; then
18	echo "yes" > ecdsa256-supported.file
19fi
20
21if $SHELL ../testcrypto.sh ecdsap384sha384; then
22	echo "yes" > ecdsa384-supported.file
23fi
24
25copy_setports ns1/named.conf.in ns1/named.conf
26copy_setports ns2/named.conf.in ns2/named.conf
27copy_setports ns3/named.conf.in ns3/named.conf
28(
29	cd ns1
30	$SHELL sign.sh
31)
32