upstream: explicitly specify RSA/SHA-2 keytype here too
OpenBSD-Regress-ID: 74d7b24e8c72c27af6b481198344eb077e993a62
This commit is contained in:
parent
3a43297ce2
commit
a76b5d26c2
|
@ -1,4 +1,4 @@
|
||||||
# $OpenBSD: cert-userkey.sh,v 1.18 2017/04/30 23:34:55 djm Exp $
|
# $OpenBSD: cert-userkey.sh,v 1.19 2018/03/12 00:54:04 djm Exp $
|
||||||
# Placed in the Public Domain.
|
# Placed in the Public Domain.
|
||||||
|
|
||||||
tid="certified user keys"
|
tid="certified user keys"
|
||||||
|
@ -8,6 +8,7 @@ cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak
|
||||||
cp $OBJ/ssh_proxy $OBJ/ssh_proxy_bak
|
cp $OBJ/ssh_proxy $OBJ/ssh_proxy_bak
|
||||||
|
|
||||||
PLAIN_TYPES=`$SSH -Q key-plain | sed 's/^ssh-dss/ssh-dsa/;s/^ssh-//'`
|
PLAIN_TYPES=`$SSH -Q key-plain | sed 's/^ssh-dss/ssh-dsa/;s/^ssh-//'`
|
||||||
|
EXTRA_TYPES=""
|
||||||
|
|
||||||
if echo "$PLAIN_TYPES" | grep '^rsa$' >/dev/null 2>&1 ; then
|
if echo "$PLAIN_TYPES" | grep '^rsa$' >/dev/null 2>&1 ; then
|
||||||
PLAIN_TYPES="$PLAIN_TYPES rsa-sha2-256 rsa-sha2-512"
|
PLAIN_TYPES="$PLAIN_TYPES rsa-sha2-256 rsa-sha2-512"
|
||||||
|
@ -15,7 +16,7 @@ fi
|
||||||
|
|
||||||
kname() {
|
kname() {
|
||||||
case $ktype in
|
case $ktype in
|
||||||
rsa-sha2-*) ;;
|
rsa-sha2-*) n="$ktype" ;;
|
||||||
# subshell because some seds will add a newline
|
# subshell because some seds will add a newline
|
||||||
*) n=$(echo $1 | sed 's/^dsa/ssh-dss/;s/^rsa/ssh-rsa/;s/^ed/ssh-ed/') ;;
|
*) n=$(echo $1 | sed 's/^dsa/ssh-dss/;s/^rsa/ssh-rsa/;s/^ed/ssh-ed/') ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $OpenBSD: keytype.sh,v 1.6 2017/10/30 22:01:52 djm Exp $
|
# $OpenBSD: keytype.sh,v 1.7 2018/03/12 00:54:04 djm Exp $
|
||||||
# Placed in the Public Domain.
|
# Placed in the Public Domain.
|
||||||
|
|
||||||
tid="login with different key types"
|
tid="login with different key types"
|
||||||
|
@ -37,7 +37,7 @@ for ut in $ktypes; do
|
||||||
ecdsa-384) t=ecdsa-sha2-nistp384;;
|
ecdsa-384) t=ecdsa-sha2-nistp384;;
|
||||||
ecdsa-521) t=ecdsa-sha2-nistp521;;
|
ecdsa-521) t=ecdsa-sha2-nistp521;;
|
||||||
ed25519-512) t=ssh-ed25519;;
|
ed25519-512) t=ssh-ed25519;;
|
||||||
rsa-*) t=ssh-rsa;;
|
rsa-*) t=rsa-sha2-512,rsa-sha2-256,ssh-rsa;;
|
||||||
esac
|
esac
|
||||||
trace "ssh connect, userkey $ut, hostkey $ht"
|
trace "ssh connect, userkey $ut, hostkey $ht"
|
||||||
(
|
(
|
||||||
|
|
Loading…
Reference in New Issue