summaryrefslogtreecommitdiff
path: root/regress/keytype.sh
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2019-07-23 13:49:14 +0000
committerDarren Tucker <dtucker@dtucker.net>2019-07-24 16:51:17 +1000
commit26bf693661a48b97b6023f702b2af643676ac21a (patch)
tree6399b93e12e9a00d1ce075944900ef969a6a74ca /regress/keytype.sh
parent773c55b3d1230e8f7714a1b33873c37b85049c74 (diff)
upstream: Construct list of key types to test based on the types
supported by the binaries. OpenBSD-Regress-ID: fcbd115efacec8ab0ecbdb3faef79ac696cb1d62
Diffstat (limited to 'regress/keytype.sh')
-rw-r--r--regress/keytype.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/regress/keytype.sh b/regress/keytype.sh
index f78a2c171..13095088e 100644
--- a/regress/keytype.sh
+++ b/regress/keytype.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: keytype.sh,v 1.7 2018/03/12 00:54:04 djm Exp $ 1# $OpenBSD: keytype.sh,v 1.8 2019/07/23 13:49:14 dtucker 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"
@@ -6,11 +6,13 @@ tid="login with different key types"
6cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak 6cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak
7cp $OBJ/ssh_proxy $OBJ/ssh_proxy_bak 7cp $OBJ/ssh_proxy $OBJ/ssh_proxy_bak
8 8
9# Traditional and builtin key types. 9# Construct list of key types based on what the built binaries support.
10ktypes="dsa-1024 rsa-2048 rsa-3072 ed25519-512" 10ktypes=""
11# Types not present in all OpenSSL versions. 11for i in ${SSH_KEYTYPES}; do
12for i in `$SSH -Q key`; do
13 case "$i" in 12 case "$i" in
13 ssh-dss) ktypes="$ktypes dsa-1024" ;;
14 ssh-rsa) ktypes="$ktypes rsa-2048 rsa-3072" ;;
15 ssh-ed25519) ktypes="$ktypes ed25519-512" ;;
14 ecdsa-sha2-nistp256) ktypes="$ktypes ecdsa-256" ;; 16 ecdsa-sha2-nistp256) ktypes="$ktypes ecdsa-256" ;;
15 ecdsa-sha2-nistp384) ktypes="$ktypes ecdsa-384" ;; 17 ecdsa-sha2-nistp384) ktypes="$ktypes ecdsa-384" ;;
16 ecdsa-sha2-nistp521) ktypes="$ktypes ecdsa-521" ;; 18 ecdsa-sha2-nistp521) ktypes="$ktypes ecdsa-521" ;;