diff -x '*.pyc' -x '*.swp' -x '*.egg-info' -x dropin.cache -urN twisted-90-release-tag.orig/twisted/conch/ssh/transport.py twisted-90-release-tag/twisted/conch/ssh/transport.py
|
old
|
new
|
|
| 67 | 67 | @ivar supportedLanguages: A list of strings representing languages |
| 68 | 68 | supported, from most-preferred to least. |
| 69 | 69 | |
| | 70 | @ivar supportedVersions: A container of strings representing supported ssh |
| | 71 | protcol version numbers. |
| | 72 | |
| 70 | 73 | @ivar isClient: A boolean indicating whether this is a client or server. |
| 71 | 74 | |
| 72 | 75 | @ivar gotVersion: A boolean indicating whether we have receieved the |
| … |
… |
|
| 149 | 152 | supportedPublicKeys = ['ssh-rsa', 'ssh-dss'] |
| 150 | 153 | supportedCompressions = ['none', 'zlib'] |
| 151 | 154 | supportedLanguages = () |
| | 155 | supportedVersions = ('1.99', '2.0') |
| 152 | 156 | isClient = False |
| 153 | 157 | gotVersion = False |
| 154 | 158 | buf = '' |
| … |
… |
|
| 300 | 304 | if p.startswith('SSH-'): |
| 301 | 305 | self.gotVersion = True |
| 302 | 306 | self.otherVersionString = p.strip() |
| 303 | | if p.split('-')[1] not in ('1.99', '2.0'): # bad version |
| | 307 | if p.split('-')[1] not in self.supportedVersions: |
| 304 | 308 | self.sendDisconnect( |
| 305 | 309 | DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED, |
| 306 | 310 | 'bad version ' + p.split('-')[1]) |
diff -x '*.pyc' -x '*.swp' -x '*.egg-info' -x dropin.cache -urN twisted-90-release-tag.orig/twisted/conch/topfiles/4428.feature twisted-90-release-tag/twisted/conch/topfiles/4428.feature
|
old
|
new
|
|
| | 1 | twisted.conch.ssh.transport.SSHTransportBase now allows supported ssh protocol versions to be overriden. |