diff options
-rw-r--r-- | regress/keygen-convert.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/regress/keygen-convert.sh b/regress/keygen-convert.sh index ad0e9c637..fce110ea1 100644 --- a/regress/keygen-convert.sh +++ b/regress/keygen-convert.sh | |||
@@ -1,9 +1,17 @@ | |||
1 | # $OpenBSD: keygen-convert.sh,v 1.1 2009/11/09 04:20:04 dtucker Exp $ | 1 | # $OpenBSD: keygen-convert.sh,v 1.2 2019/07/23 07:55:29 dtucker Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="convert keys" | 4 | tid="convert keys" |
5 | 5 | ||
6 | for t in rsa dsa; do | 6 | types="" |
7 | for i in ${SSH_KEYTYPES}; do | ||
8 | case "$i" in | ||
9 | ssh-dss) types="$types dsa" ;; | ||
10 | ssh-rsa) types="$types rsa" ;; | ||
11 | esac | ||
12 | done | ||
13 | |||
14 | for t in $types; do | ||
7 | # generate user key for agent | 15 | # generate user key for agent |
8 | trace "generating $t key" | 16 | trace "generating $t key" |
9 | rm -f $OBJ/$t-key | 17 | rm -f $OBJ/$t-key |