summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2018-08-30 00:58:56 +0100
committerColin Watson <cjwatson@debian.org>2019-06-14 12:05:09 +0100
commit715b72009450c3448de10729817687c53554efb2 (patch)
tree487dd092ddd127620acf17a68fa2ce3a2edfb39c
parent440ef75890c282e75534689cd4e0d3938279b8e0 (diff)
Work around conch interoperability failure
Twisted Conch fails to read private keys in the new format (https://twistedmatrix.com/trac/ticket/9515). Work around this until it can be fixed in Twisted. Forwarded: not-needed Last-Update: 2019-06-14 Patch-Name: conch-old-privkey-format.patch
-rw-r--r--regress/Makefile2
-rw-r--r--regress/conch-ciphers.sh2
-rw-r--r--regress/test-exec.sh12
3 files changed, 14 insertions, 2 deletions
diff --git a/regress/Makefile b/regress/Makefile
index 781400fd0..491a3a46a 100644
--- a/regress/Makefile
+++ b/regress/Makefile
@@ -114,7 +114,7 @@ CLEANFILES= *.core actual agent-key.* authorized_keys_${USERNAME} \
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 \ 116 sftp-server.sh sftp.log ssh-log-wrapper.sh \
117 ssh-rsa_oldfmt \ 117 ssh-rsa_oldfmt ssh-rsa_oldfmt.pub \
118 ssh.log ssh_config ssh_config.* ssh_proxy ssh_proxy_bak \ 118 ssh.log ssh_config ssh_config.* ssh_proxy ssh_proxy_bak \
119 ssh_proxy_envpass sshd.log sshd_config sshd_config_minimal \ 119 ssh_proxy_envpass sshd.log sshd_config sshd_config_minimal \
120 sshd_config.orig sshd_proxy sshd_proxy.* sshd_proxy_bak \ 120 sshd_config.orig sshd_proxy sshd_proxy.* sshd_proxy_bak \
diff --git a/regress/conch-ciphers.sh b/regress/conch-ciphers.sh
index 51e3b705f..fa24552b0 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/ssh-rsa --port $PORT --user $USER -e none \ 19 ${CONCH} --identity $OBJ/ssh-rsa_oldfmt --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 efde6a173..83c7d02e6 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -500,6 +500,18 @@ REGRESS_INTEROP_CONCH=no
500if test -x "$CONCH" ; then 500if test -x "$CONCH" ; then
501 REGRESS_INTEROP_CONCH=yes 501 REGRESS_INTEROP_CONCH=yes
502fi 502fi
503case "$SCRIPT" in
504*conch*) ;;
505*) REGRESS_INTEROP_CONCH=no
506esac
507
508if test "$REGRESS_INTEROP_CONCH" = "yes" ; then
509 # Convert rsa key to old format to work around
510 # https://twistedmatrix.com/trac/ticket/9515
511 cp $OBJ/ssh-rsa $OBJ/ssh-rsa_oldfmt
512 cp $OBJ/ssh-rsa.pub $OBJ/ssh-rsa_oldfmt.pub
513 ${SSHKEYGEN} -p -N '' -m PEM -f $OBJ/ssh-rsa_oldfmt >/dev/null
514fi
503 515
504# If PuTTY is present and we are running a PuTTY test, prepare keys and 516# If PuTTY is present and we are running a PuTTY test, prepare keys and
505# configuration 517# configuration