diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2019-07-23 07:55:30 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2019-07-23 07:55:30 +0000 |
commit | fb683d320f75251344e3b3c17de1fbe807b860bf (patch) | |
tree | 9c0d63d3969349e1f32123d935a5d730a0db289f /regress/usr.bin | |
parent | 05cd50383bf6aee6864d832e405f218703ce2d8a (diff) |
Only test conversion of key types supported by the binaries.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/ssh/keygen-convert.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/keygen-convert.sh b/regress/usr.bin/ssh/keygen-convert.sh index ad0e9c637d0..fce110ea153 100644 --- a/regress/usr.bin/ssh/keygen-convert.sh +++ b/regress/usr.bin/ssh/keygen-convert.sh @@ -1,9 +1,17 @@ -# $OpenBSD: keygen-convert.sh,v 1.1 2009/11/09 04:20:04 dtucker Exp $ +# $OpenBSD: keygen-convert.sh,v 1.2 2019/07/23 07:55:29 dtucker Exp $ # Placed in the Public Domain. tid="convert keys" -for t in rsa dsa; do +types="" +for i in ${SSH_KEYTYPES}; do + case "$i" in + ssh-dss) types="$types dsa" ;; + ssh-rsa) types="$types rsa" ;; + esac +done + +for t in $types; do # generate user key for agent trace "generating $t key" rm -f $OBJ/$t-key |