summaryrefslogtreecommitdiff
path: root/regress/keygen-convert.sh
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2019-07-23 07:55:29 +0000
committerDarren Tucker <dtucker@dtucker.net>2019-07-23 22:51:22 +1000
commit3a3eab8bb0da3d2f0f32cb85a1a268bcca6e4d69 (patch)
tree7ab276f04185d61fcc0d18192fceecdfb0b9ee61 /regress/keygen-convert.sh
parent7e66b7d98c6e3f48a1918c3e1940c9b11b10ec63 (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.sh12
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
4tid="convert keys" 4tid="convert keys"
5 5
6for t in rsa dsa; do 6types=""
7for i in ${SSH_KEYTYPES}; do
8 case "$i" in
9 ssh-dss) types="$types dsa" ;;
10 ssh-rsa) types="$types rsa" ;;
11 esac
12done
13
14for 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