summaryrefslogtreecommitdiff
path: root/regress/keytype.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/keytype.sh')
-rw-r--r--regress/keytype.sh16
1 files changed, 11 insertions, 5 deletions
diff --git a/regress/keytype.sh b/regress/keytype.sh
index 59586bf0d..9752acb0a 100644
--- a/regress/keytype.sh
+++ b/regress/keytype.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: keytype.sh,v 1.2 2013/05/17 00:37:40 dtucker Exp $ 1# $OpenBSD: keytype.sh,v 1.3 2013/12/06 13:52:46 markus Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4tid="login with different key types" 4tid="login with different key types"
@@ -11,10 +11,16 @@ fi
11cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak 11cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak
12cp $OBJ/ssh_proxy $OBJ/ssh_proxy_bak 12cp $OBJ/ssh_proxy $OBJ/ssh_proxy_bak
13 13
14ktypes="dsa-1024 rsa-2048 rsa-3072" 14# Traditional and builtin key types.
15if test "$TEST_SSH_ECC" = "yes"; then 15ktypes="dsa-1024 rsa-2048 rsa-3072 ed25519-512"
16 ktypes="$ktypes ecdsa-256 ecdsa-384 ecdsa-521" 16# Types not present in all OpenSSL versions.
17fi 17for i in `$SSH -Q key`; do
18 case "$i" in
19 ecdsa-sha2-nistp256) ktypes="$ktypes ecdsa-256" ;;
20 ecdsa-sha2-nistp384) ktypes="$ktypes ecdsa-384" ;;
21 ecdsa-sha2-nistp521) ktypes="$ktypes ecdsa-521" ;;
22 esac
23done
18 24
19for kt in $ktypes; do 25for kt in $ktypes; do
20 rm -f $OBJ/key.$kt 26 rm -f $OBJ/key.$kt