diff options
author | Colin Watson <cjwatson@debian.org> | 2019-06-14 11:57:15 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2019-06-21 16:14:04 +0100 |
commit | 42519a0f32765726ccd18a14aa6e877413a69662 (patch) | |
tree | 642512cd53f5497970975071d30d4ac9bb63c45e | |
parent | d38283cc4cba6bf7685a16898a3b9d3a6cecf661 (diff) |
Fix interop tests for recent regress changes
A recent regress change (2a9b3a2ce411d16cda9c79ab713c55f65b0ec257 in
portable) broke the PuTTY and Twisted Conch interop tests, because the
key they want to use is now called ssh-rsa rather than rsa. Fix them.
Forwarded: https://bugzilla.mindrot.org/show_bug.cgi?id=3020
Last-Update: 2019-06-14
Patch-Name: fix-interop-tests.patch
-rw-r--r-- | regress/Makefile | 5 | ||||
-rw-r--r-- | regress/conch-ciphers.sh | 2 | ||||
-rw-r--r-- | regress/test-exec.sh | 10 |
3 files changed, 9 insertions, 8 deletions
diff --git a/regress/Makefile b/regress/Makefile index 925edf71a..781400fd0 100644 --- a/regress/Makefile +++ b/regress/Makefile | |||
@@ -113,8 +113,9 @@ CLEANFILES= *.core actual agent-key.* authorized_keys_${USERNAME} \ | |||
113 | rsa1 rsa1-agent rsa1-agent.pub rsa1.pub rsa_ssh2_cr.prv \ | 113 | rsa1 rsa1-agent rsa1-agent.pub rsa1.pub rsa_ssh2_cr.prv \ |
114 | rsa_ssh2_crnl.prv scp-ssh-wrapper.exe \ | 114 | rsa_ssh2_crnl.prv scp-ssh-wrapper.exe \ |
115 | scp-ssh-wrapper.scp setuid-allowed sftp-server.log \ | 115 | scp-ssh-wrapper.scp setuid-allowed sftp-server.log \ |
116 | sftp-server.sh sftp.log ssh-log-wrapper.sh ssh.log \ | 116 | sftp-server.sh sftp.log ssh-log-wrapper.sh \ |
117 | ssh_config ssh_config.* ssh_proxy ssh_proxy_bak \ | 117 | ssh-rsa_oldfmt \ |
118 | ssh.log ssh_config ssh_config.* ssh_proxy ssh_proxy_bak \ | ||
118 | ssh_proxy_envpass sshd.log sshd_config sshd_config_minimal \ | 119 | ssh_proxy_envpass sshd.log sshd_config sshd_config_minimal \ |
119 | sshd_config.orig sshd_proxy sshd_proxy.* sshd_proxy_bak \ | 120 | sshd_config.orig sshd_proxy sshd_proxy.* sshd_proxy_bak \ |
120 | sshd_proxy_orig t10.out t10.out.pub t12.out t12.out.pub \ | 121 | sshd_proxy_orig t10.out t10.out.pub t12.out t12.out.pub \ |
diff --git a/regress/conch-ciphers.sh b/regress/conch-ciphers.sh index 199d863a0..51e3b705f 100644 --- a/regress/conch-ciphers.sh +++ b/regress/conch-ciphers.sh | |||
@@ -16,7 +16,7 @@ for c in aes256-ctr aes256-cbc aes192-ctr aes192-cbc aes128-ctr aes128-cbc \ | |||
16 | rm -f ${COPY} | 16 | rm -f ${COPY} |
17 | # XXX the 2nd "cat" seems to be needed because of buggy FD handling | 17 | # XXX the 2nd "cat" seems to be needed because of buggy FD handling |
18 | # in conch | 18 | # in conch |
19 | ${CONCH} --identity $OBJ/rsa --port $PORT --user $USER -e none \ | 19 | ${CONCH} --identity $OBJ/ssh-rsa --port $PORT --user $USER -e none \ |
20 | --known-hosts $OBJ/known_hosts --notty --noagent --nox11 -n \ | 20 | --known-hosts $OBJ/known_hosts --notty --noagent --nox11 -n \ |
21 | 127.0.0.1 "cat ${DATA}" 2>/dev/null | cat > ${COPY} | 21 | 127.0.0.1 "cat ${DATA}" 2>/dev/null | cat > ${COPY} |
22 | if [ $? -ne 0 ]; then | 22 | if [ $? -ne 0 ]; then |
diff --git a/regress/test-exec.sh b/regress/test-exec.sh index b8e2009de..efde6a173 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh | |||
@@ -527,13 +527,13 @@ if test "$REGRESS_INTEROP_PUTTY" = "yes" ; then | |||
527 | >> $OBJ/authorized_keys_$USER | 527 | >> $OBJ/authorized_keys_$USER |
528 | 528 | ||
529 | # Convert rsa2 host key to PuTTY format | 529 | # Convert rsa2 host key to PuTTY format |
530 | cp $OBJ/rsa $OBJ/rsa_oldfmt | 530 | cp $OBJ/ssh-rsa $OBJ/ssh-rsa_oldfmt |
531 | ${SSHKEYGEN} -p -N '' -m PEM -f $OBJ/rsa_oldfmt >/dev/null | 531 | ${SSHKEYGEN} -p -N '' -m PEM -f $OBJ/ssh-rsa_oldfmt >/dev/null |
532 | ${SRC}/ssh2putty.sh 127.0.0.1 $PORT $OBJ/rsa_oldfmt > \ | 532 | ${SRC}/ssh2putty.sh 127.0.0.1 $PORT $OBJ/ssh-rsa_oldfmt > \ |
533 | ${OBJ}/.putty/sshhostkeys | 533 | ${OBJ}/.putty/sshhostkeys |
534 | ${SRC}/ssh2putty.sh 127.0.0.1 22 $OBJ/rsa_oldfmt >> \ | 534 | ${SRC}/ssh2putty.sh 127.0.0.1 22 $OBJ/ssh-rsa_oldfmt >> \ |
535 | ${OBJ}/.putty/sshhostkeys | 535 | ${OBJ}/.putty/sshhostkeys |
536 | rm -f $OBJ/rsa_oldfmt | 536 | rm -f $OBJ/ssh-rsa_oldfmt |
537 | 537 | ||
538 | # Setup proxied session | 538 | # Setup proxied session |
539 | mkdir -p ${OBJ}/.putty/sessions | 539 | mkdir -p ${OBJ}/.putty/sessions |