mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-25 03:43:49 -04:00
Force quiet mode when using testcrypto.sh directly
When testcrypto.sh is used as a standalone script, always use quiet mode to avoid using undefined commands (such as echo_i) which require inclusion of the entire conf.sh machinery.
This commit is contained in:
parent
92bef0ab56
commit
ba35a6df9c
1 changed files with 11 additions and 6 deletions
|
|
@ -11,22 +11,27 @@
|
|||
# See the COPYRIGHT file distributed with this work for additional
|
||||
# information regarding copyright ownership.
|
||||
|
||||
prog=$0
|
||||
args=""
|
||||
quiet=0
|
||||
msg="cryptography"
|
||||
|
||||
if test -z "$KEYGEN"; then
|
||||
. ../conf.sh
|
||||
alg="-a $DEFAULT_ALGORITHM -b $DEFAULT_BITS"
|
||||
else
|
||||
alg=""
|
||||
quiet=1
|
||||
args="-q"
|
||||
fi
|
||||
|
||||
prog=$0
|
||||
args=""
|
||||
quiet=0
|
||||
msg="cryptography"
|
||||
while test "$#" -gt 0; do
|
||||
case $1 in
|
||||
-q)
|
||||
args="$args -q"
|
||||
quiet=1
|
||||
if test $quiet -eq 0; then
|
||||
args="$args -q"
|
||||
quiet=1
|
||||
fi
|
||||
;;
|
||||
rsa|RSA|rsasha1|RSASHA1)
|
||||
alg="-a RSASHA1"
|
||||
|
|
|
|||
Loading…
Reference in a new issue