xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/eddsa/setup.sh (revision e670fd5c413e99c2f6a37901bb21c537fcd322d2)
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
15if $SHELL ../testcrypto.sh ed25519; then
16	echo "yes" > ed25519-supported.file
17fi
18
19if $SHELL ../testcrypto.sh ed448; then
20	echo "yes" > ed448-supported.file
21fi
22
23copy_setports ns1/named.conf.in ns1/named.conf
24copy_setports ns2/named.conf.in ns2/named.conf
25copy_setports ns3/named.conf.in ns3/named.conf
26
27(
28	cd ns1
29	$SHELL sign.sh
30)
31(
32	cd ns2
33	$SHELL sign.sh
34)
35(
36	cd ns3
37	$SHELL sign.sh
38)
39