diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2019-07-23 07:55:29 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-07-23 22:51:22 +1000 |
commit | 3a3eab8bb0da3d2f0f32cb85a1a268bcca6e4d69 (patch) | |
tree | 7ab276f04185d61fcc0d18192fceecdfb0b9ee61 /regress/keygen-convert.sh | |
parent | 7e66b7d98c6e3f48a1918c3e1940c9b11b10ec63 (diff) |
upstream: Only test conversion of key types supported by the
binaries.
OpenBSD-Regress-ID: e3f0938a0a7407e2dfbb90abc3ec979ab6e8eeea
Diffstat (limited to 'regress/keygen-convert.sh')
-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 |