summaryrefslogtreecommitdiff
path: root/regress/keytype.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/keytype.sh')
-rw-r--r--regress/keytype.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/regress/keytype.sh b/regress/keytype.sh
index 2c57ec6b1..9752acb0a 100644
--- a/regress/keytype.sh
+++ b/regress/keytype.sh
@@ -11,12 +11,14 @@ 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
14# Traditional and builtin key types.
14ktypes="dsa-1024 rsa-2048 rsa-3072 ed25519-512" 15ktypes="dsa-1024 rsa-2048 rsa-3072 ed25519-512"
16# Types not present in all OpenSSL versions.
15for i in `$SSH -Q key`; do 17for i in `$SSH -Q key`; do
16 case "$i" in 18 case "$i" in
17 ecdsa-sha2-nistp256) ktype="$ktype ecdsa-256" ;; 19 ecdsa-sha2-nistp256) ktypes="$ktypes ecdsa-256" ;;
18 ecdsa-sha2-nistp384) ktype="$ktype ecdsa-384" ;; 20 ecdsa-sha2-nistp384) ktypes="$ktypes ecdsa-384" ;;
19 ecdsa-sha2-nistp521) ktype="$ktype ecdsa-521" ;; 21 ecdsa-sha2-nistp521) ktypes="$ktypes ecdsa-521" ;;
20 esac 22 esac
21done 23done
22 24