~cjwatson/twisted:lp-backport

Last commit made on 2022-03-14
Get this branch:
git clone -b lp-backport https://git.launchpad.net/~cjwatson/twisted
Only Colin Watson can upload to this branch. If you are Colin Watson please log in for upload directions.

Branch merges

Branch information

Name:
lp-backport
Repository:
lp:~cjwatson/twisted

Recent commits

2f111d0... by Colin Watson

Bump version to 20.3.0+lp8

06662b3... by Colin Watson

Merge pull request #1701 from cjwatson/10313-fix-ssh-session-eof-received

10313: Send exit-status/exit-signal on EOF to SSHSession again

https://github.com/twisted/twisted/pull/1701

22d9146... by Colin Watson

Bump version to 20.3.0+lp7

129efe5... by Poor Adi

Merge pull request from GHSA-rv6r-3f5q-9rgx

[Fix #10284] Fix out of memory deny of service for conch ssh version string handling during handshake.

https://github.com/twisted/twisted/commit/98387b39e9

d32f747... by Colin Watson

Bump version to 20.3.0+lp6

e622b81... by Colin Watson

Merge pull request #1696 from cjwatson/10308-conch-fix-subsystem-close

Author: cjwatson
Reviewer: adiroiban
Fixes: ticket:10308

If an environment variable passing request and a subsystem request were
both sent on the same channel, then SSHSession only cleaned up the
ISession adapter when receiving EOF or closing the channel, and did not
call loseConnection on the client transport which is the only reasonable
way for a subsystem to be notified when a connection is closed.

SSHSession now cleans up both the client transport and the ISession
adapter if both are set.

https://github.com/twisted/twisted/pull/1696

776cdd3... by Colin Watson

Bump version to 20.3.0+lp5

48c110d... by Colin Watson

Pin a few upper bounds so that tests mostly work on 3.5

twisted.protocols.test.test_tls.NonStreamingProducerTests.test_writeUntilDone
still fails, but that doesn't seem to be new, and we don't use Twisted's
TLS protocol code in Launchpad anyway.

7105b0c... by Colin Watson

Fix up LocalVersion somewhat

536a893... by Colin Watson

Add a PyNaCl-based fallback path for X25519

Ubuntu 16.04 LTS lacks a version of OpenSSL new enough to support X25519
via cryptography. Add a fallback path using PyNaCl to support these.

This can't really be submitted upstream since Twisted no longer supports
Ubuntu 16.04 for other reasons (its Python version is too old), but the
approach here is very similar to the PyNaCl fallback for Ed25519. I've
manually compared it with the cryptography-based code and verified that
it produces the same shared secrets given the same input keys.