diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2019-07-23 15:49:14 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-07-24 08:51:17 +0200 |
commit | 26bf693661a48b97b6023f702b2af643676ac21a (patch) | |
tree | 6399b93e12e9a00d1ce075944900ef969a6a74ca /regress/keytype.sh | |
parent | upstream: Only use DSA key type in tests if binaries support it. (diff) | |
download | openssh-26bf693661a48b97b6023f702b2af643676ac21a.tar.xz openssh-26bf693661a48b97b6023f702b2af643676ac21a.zip |
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.sh | 12 |
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 @@ -# $OpenBSD: keytype.sh,v 1.7 2018/03/12 00:54:04 djm Exp $ +# $OpenBSD: keytype.sh,v 1.8 2019/07/23 13:49:14 dtucker Exp $ # Placed in the Public Domain. tid="login with different key types" @@ -6,11 +6,13 @@ tid="login with different key types" cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak cp $OBJ/ssh_proxy $OBJ/ssh_proxy_bak -# Traditional and builtin key types. -ktypes="dsa-1024 rsa-2048 rsa-3072 ed25519-512" -# Types not present in all OpenSSL versions. -for i in `$SSH -Q key`; do +# Construct list of key types based on what the built binaries support. +ktypes="" +for i in ${SSH_KEYTYPES}; do case "$i" in + ssh-dss) ktypes="$ktypes dsa-1024" ;; + ssh-rsa) ktypes="$ktypes rsa-2048 rsa-3072" ;; + ssh-ed25519) ktypes="$ktypes ed25519-512" ;; ecdsa-sha2-nistp256) ktypes="$ktypes ecdsa-256" ;; ecdsa-sha2-nistp384) ktypes="$ktypes ecdsa-384" ;; ecdsa-sha2-nistp521) ktypes="$ktypes ecdsa-521" ;; |