From fb683d320f75251344e3b3c17de1fbe807b860bf Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Tue, 23 Jul 2019 07:55:30 +0000 Subject: Only test conversion of key types supported by the binaries. --- regress/usr.bin/ssh/keygen-convert.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'regress/usr.bin') 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 -- cgit v1.2.3