summaryrefslogtreecommitdiff
path: root/regress/keytype.sh
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2015-07-10 06:23:25 +0000
committerDamien Miller <djm@mindrot.org>2015-07-15 16:04:27 +1000
commit5bf0933184cb622ca3f96d224bf3299fd2285acc (patch)
tree18ad0591b04a1ff98bb69265e04bc7c5b961533e /regress/keytype.sh
parent7a6e3fd7b41dbd3756b6bf9acd67954c0b1564cc (diff)
upstream commit
Adapt tests, now that DSA if off by default; use PubkeyAcceptedKeyTypes and PubkeyAcceptedKeyTypes to test DSA. Upstream-Regress-ID: 0ff2a3ff5ac1ce5f92321d27aa07b98656efcc5c
Diffstat (limited to 'regress/keytype.sh')
-rw-r--r--regress/keytype.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/regress/keytype.sh b/regress/keytype.sh
index 9752acb0a..8f697788f 100644
--- a/regress/keytype.sh
+++ b/regress/keytype.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: keytype.sh,v 1.3 2013/12/06 13:52:46 markus Exp $ 1# $OpenBSD: keytype.sh,v 1.4 2015/07/10 06:23:25 markus Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4tid="login with different key types" 4tid="login with different key types"
@@ -36,14 +36,26 @@ for ut in $ktypes; do
36 htypes=$ut 36 htypes=$ut
37 #htypes=$ktypes 37 #htypes=$ktypes
38 for ht in $htypes; do 38 for ht in $htypes; do
39 case $ht in
40 dsa-1024) t=ssh-dss;;
41 ecdsa-256) t=ecdsa-sha2-nistp256;;
42 ecdsa-384) t=ecdsa-sha2-nistp384;;
43 ecdsa-521) t=ecdsa-sha2-nistp521;;
44 ed25519-512) t=ssh-ed25519;;
45 rsa-*) t=ssh-rsa;;
46 esac
39 trace "ssh connect, userkey $ut, hostkey $ht" 47 trace "ssh connect, userkey $ut, hostkey $ht"
40 ( 48 (
41 grep -v HostKey $OBJ/sshd_proxy_bak 49 grep -v HostKey $OBJ/sshd_proxy_bak
42 echo HostKey $OBJ/key.$ht 50 echo HostKey $OBJ/key.$ht
51 echo PubkeyAcceptedKeyTypes $t
52 echo HostKeyAlgorithms $t
43 ) > $OBJ/sshd_proxy 53 ) > $OBJ/sshd_proxy
44 ( 54 (
45 grep -v IdentityFile $OBJ/ssh_proxy_bak 55 grep -v IdentityFile $OBJ/ssh_proxy_bak
46 echo IdentityFile $OBJ/key.$ut 56 echo IdentityFile $OBJ/key.$ut
57 echo PubkeyAcceptedKeyTypes $t
58 echo HostKeyAlgorithms $t
47 ) > $OBJ/ssh_proxy 59 ) > $OBJ/ssh_proxy
48 ( 60 (
49 printf 'localhost-with-alias,127.0.0.1,::1 ' 61 printf 'localhost-with-alias,127.0.0.1,::1 '