summaryrefslogtreecommitdiff
path: root/paramiko/packet.py
Commit message (Collapse)AuthorAgeFilesLines
* blackenJeff Forcier2023-01-181-1/+1
|
* Merge branch '2165-int' into 3.0Jeff Forcier2023-01-161-1/+1
|\
| * Improve performance by reducing expensive bytes conversionAlex Gaynor2023-01-101-1/+1
| | | | | | | | | | | | In two core parts of the codebase, complex type-switch based code is used to convert a value to bytes. However, in all cases (except for one, fixed in this PR), the caller is specifying a Message instance. We can make this code much simpler by directly calling the correct method on Message. In #2110 this is measured to massively speed up large SFTP transfers.
* | Nuke retry_on_signal, pointless on modern Py3Jeff Forcier2023-01-161-11/+0
| | | | | | | | | | Additionally, other bits of code that retry EINTR can similarly just go away.
* | No more (object)ionsJeff Forcier2023-01-161-1/+1
|/
* Move b, u helpers to util module for nowJeff Forcier2023-01-091-2/+1
| | | | Later on we can likely nuke many uses of these
* Migrate some byte related helpers aroundJeff Forcier2023-01-091-2/+3
| | | | | I feel like we should be able to just nuke byte_chr and friends at this point, but it's not entirely obvious, so let's rock that boat later.
* Fix Free Software Foundation addressPaul Howarth2022-03-151-1/+1
| | | | They moved from Temple Place to Franklin Street in 2005.
* Tighten up some logic/flow in the new ETM packet codeJeff Forcier2019-06-091-23/+12
|
* Merge branch 'master' into 1233-intJeff Forcier2019-06-091-0/+1
|\
| * Bump black up to 18.6b4Jeff Forcier2018-08-221-0/+1
| |
* | Make black - py36 happy.Edgar Sousa2018-06-121-1/+1
| |
* | Make black - py36 happy.edgsousa2018-06-121-9/+19
| |
* | flake8 warningsedgsousa2018-06-121-14/+21
| | | | | | | | Change order of preference of -etm hmac algos (fixes test_transport zlib)
* | Add hmac-sha2-256-etm@openssh.com and hmac-sha2-512-etm@openssh.com supportedgsousa2018-06-121-17/+60
|/
* Blacken under black 18.5b0Jeff Forcier2018-05-291-26/+19
|
* Blacken Paramiko on 2.4Chris Rose2018-05-171-47/+74
|
* Fix some oopses from previous changesJeff Forcier2017-10-131-2/+2
|
* flake8 for previous changesetJeff Forcier2017-10-111-4/+8
|
* String format modernization, part 11070-remove-python26-and-33Jeff Forcier2017-10-101-9/+14
| | | | | | | Choosing to skip it in some edge/corner cases where it's more harmful than helpful. Also choosing to replace many non-%s specifiers with regular old {} since I don't see why one would normally care. Again, eschewing that in spots where it seems like it might matter.
* Move to 'inv sites' style doc nitpicking.Jeff Forcier2017-06-051-4/+8
| | | | | | | Existing just-warnings setup was old and not as rigorous as my usual. Required a lot of stupid little changes, but now same tooling for all projects, toot toot.
* Even moar parentheses over backslashesJeff Forcier2017-05-311-6/+10
|
* Seriously, folks? Refactor some silly crap.Jeff Forcier2017-05-311-10/+14
|
* Additional house style formatting tweaks, mostly re: removal of line ↵Jeff Forcier2017-05-311-2/+4
| | | | continuations
* Even more flake8.Dorian Pula2017-05-311-31/+63
|
* Merge branch '1.17' into 2.0Jeff Forcier2016-06-111-0/+4
|\
| * Experimental fix re #520Jeff Forcier2016-06-111-0/+4
| |
* | Merge branch 'master' into switch-to-cryptographyAlex Gaynor2015-12-161-3/+4
|\ \ | |/
| * Merge branch '1.15' into 1.16Jeff Forcier2015-12-061-3/+4
| |\
| | * Docstring reformatJeff Forcier2015-11-061-3/+4
| | |
* | | Merge branch 'master' into switch-to-cryptographyAlex Gaynor2015-11-041-1/+47
|\ \ \ | |/ / | | | | | | | | | | | | | | | Conflicts: .travis.yml paramiko/ecdsakey.py paramiko/transport.py
| * | FormattingJeff Forcier2015-11-011-1/+2
| |/
| * Add support for signaling a handshake process in packetizer.Olle Lundberg2015-02-241-0/+45
| | | | | | | | | | This makes it possible to raise an EOFError if the handshake process has started but takes too long time to finish.
* | Switched everything to use cryptographyAlex Gaynor2014-09-151-3/+3
|/
* Let packetizer handle 0-length sends from channel.Olle Lundberg2014-08-151-0/+10
| | | | | | | | | If the channel is closed the send method returs a response length of 0. This is not handled correctly by the packetizer and puts it in an infinite loop. (Fixes #156 for real :-) We make sure we don't do more than 10 iteration on a 0 length respose, but raise an EOFError.
* Merge branch 'master' into use-urandomAlex Gaynor2014-04-141-7/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: paramiko/dsskey.py paramiko/ecdsakey.py paramiko/hostkeys.py paramiko/kex_gex.py paramiko/kex_group1.py paramiko/pkey.py paramiko/primes.py paramiko/rsakey.py tests/test_pkey.py
| * Switched hash functions from PyCrypto to hashlib.Alex Gaynor2014-03-291-7/+2
| | | | | | | | | | | | | | | | There's a few advantages to this: 1) It's probably fast, OpenSSL, which typically backs hashlib, receives far more attention for optimizaitons than PyCrypto. 2) It's the first step to supporting PyPy, where PyCrypto doesn't run.
* | Switch from using PyCrypto's Random to using os.urandom.Alex Gaynor2014-03-291-2/+3
|/ | | | | | | | | | | There's several reasons for this change: 1) It's faster for reads up to 1024 bytes (nearly 10x faster for 16 byte reads) 2) It receives considerably more security review since it's in the kernel. 3) It's yet another step towards running on PyPy. 4) Using userspace CSPRNGs is considered something of an anti-pattern. See: http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/ http://webcache.googleusercontent.com/search?q=cache:2nTvpCgKZXIJ:www.2uo.de/myths-about-urandom/+&cd=3&hl=en&ct=clnk&gl=us
* Fix import * and a bunch of PEP8 formattingScott Maxwell2014-03-071-54/+18
|
* Merge remote-tracking branch 'scottkmaxwell/py3-support-without-py25' into ↵Jeff Forcier2014-03-051-20/+22
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | python3 Conflicts: dev-requirements.txt paramiko/__init__.py paramiko/file.py paramiko/hostkeys.py paramiko/message.py paramiko/proxy.py paramiko/server.py paramiko/transport.py paramiko/util.py paramiko/win_pageant.py setup.py
| * Change all exceptions to modern format (not Py2.5 compatible)Scott Maxwell2013-11-191-6/+3
| |
| * Make sftp.open handle binary and text, more type conversionScott Maxwell2013-11-021-3/+3
| |
| * Changes inspired by the nischu7 branchScott Maxwell2013-11-011-2/+3
| |
| * Fix bytes/str type in more placesScott Maxwell2013-10-311-2/+2
| |
| * Convert and detect types properly, use helper constants, use StringIO and rangeScott Maxwell2013-10-301-15/+16
| |
| * Fix dict iters, sorts, exceptions, bytes renames and tuple argsScott Maxwell2013-10-301-3/+6
| |
* | Merge branch '1.10' into 1.11Jeff Forcier2014-03-031-14/+11
|\ \ | | | | | | | | | | | | | | | Conflicts: fabfile.py paramiko/__init__.py
| * | Bunch more info fieldsJeff Forcier2014-02-261-8/+5
| | |
| * | s/python/Python/, c'mon son!Jeff Forcier2014-02-211-1/+1
| | |
| * | Docstring tweakJeff Forcier2014-02-211-1/+1
| | |