bind9/bin/tests/system/tsig/setup.sh
Mark Andrews e8177ac605 tsig: only use FIPS compatible HMAC in FIPS mode
HMACMD5 is not permitted in FIPS mode.  Only test HMACMD5 when not
in FIPS mode.
2023-04-03 12:44:27 +10:00

25 lines
678 B
Bash

#!/bin/sh
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
#
# SPDX-License-Identifier: MPL-2.0
#
# 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/.
#
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
. ../conf.sh
$SHELL clean.sh
if $FEATURETEST --md5
then
copy_setports ns1/named-fips.conf.in ns1/named-fips.conf
# includes named-fips.conf
cp ns1/named.conf.in ns1/named.conf
else
copy_setports ns1/named-fips.conf.in ns1/named.conf
fi