summaryrefslogtreecommitdiff
path: root/paramiko/common.py
Commit message (Collapse)AuthorAgeFilesLines
* blackenJeff Forcier2023-01-111-7/+11
|
* Migrate some byte related helpers aroundJeff Forcier2023-01-091-32/+24
| | | | | 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.
* Add support for RSA SHA2 host and public keysJeff Forcier2021-12-231-1/+4
| | | | | | Includes a handful of refactors and new semiprivate attributes on Transport and AuthHandler for better test visibility.
* Merge branch '2.4'Jeff Forcier2018-05-291-68/+97
|\
| * Blacken under black 18.5b0Jeff Forcier2018-05-291-16/+6
| |
| * Blacken Paramiko on 2.4Chris Rose2018-05-171-68/+107
| |
* | Merge branch '2.4'Jeff Forcier2018-03-121-0/+1
|\ \ | |/
| * Fixes CVE-2018-7750 / #XXXJeff Forcier2018-03-121-0/+1
| | | | | | | | At least, insofar as the new tests pass...!
* | flake8Jeff Forcier2017-12-181-1/+1
| | | | | | | | also sorted py3compat.__all__
* | Leverage b() in asbytes() to avoid duplication.Jeff Forcier2017-12-181-12/+19
|/ | | | | | Cannot really get RID of asbytes() though, but that's fine. Also tweak flow & comments for clarity
* Flake8/etc tweaks re #971 in 2.xJeff Forcier2017-06-091-3/+1
|
* Tweak comments as suggested in reviewMartin Packman2017-06-091-2/+3
| | | | Thanks to bitprophet and ploxiln.
* Allow any buffer type to be sent to ChannelMartin Packman2017-06-091-9/+10
| | | | | | | | | | | | | Fixes #968 Changes the behaviour of the underlying asbytes helper to pass along unknown types. Most callers already handle this by passing the bytes along to a file or socket-like object which will raise TypeError anyway. Adds test coverage through the Transport implementation. Change against the 1.17 branch.
* More death to line continuationsJeff Forcier2017-05-311-2/+3
|
* Even more flake8.Dorian Pula2017-05-311-3/+5
|
* More flake8 fixes and fix tests.Dorian Pula2017-05-311-3/+4
|
* Suggest a MIN_WINDOW_SIZE and MIN_PACKET_SIZEJeff Quast2014-12-171-1/+5
| | | | | | | | | | | | Not fully confident with this change, though I will describe my findings fully in the pull request. The OpenSSH client requests a maximum packet size of 16384, but this MIN_PACKET_SIZE value of 32768 causes its request to be "clamped" up to 32768, later causing an error to stderr on the OpenSSH client. Suggest then, to delineate MIN_WINDOW_SIZE from MIN_PACKET_SIZE, as they are applied. I don't think there is any minimum value of MIN_PACKET_SIZE, however we can suggest a value of 4096 for now.
* Merge branch 'master' into 267-intJeff Forcier2014-09-081-0/+11
|\ | | | | | | | | | | | | Conflicts: paramiko/client.py paramiko/transport.py sites/www/changelog.rst
| * Move window and packet constants.Olle Lundberg2014-08-141-0/+11
| | | | | | | | | | | | Centralise them to the common module to avoid import cycles. Also add constants for default values and use them in the transport class.
* | Merge branch 'paramiko:master' into gssapi-py3-supportSebastian Deiss2014-04-231-5/+0
|\ \ | |/ | | | | | | | | Conflicts: sites/www/changelog.rst test.py
| * Switch from using PyCrypto's Random to using os.urandom.Alex Gaynor2014-03-291-5/+0
| | | | | | | | | | | | | | | | | | | | | | 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
* | Adapt GSS-API implementation to the merged code.Sebastian Deiss2014-03-261-0/+6
| |
* | Merge branch 'master' into gssapi-py3-supportSebastian Deiss2014-03-261-23/+31
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .gitignore README demos/demo_simple.py dev-requirements.txt paramiko/__init__.py paramiko/_winapi.py paramiko/agent.py paramiko/auth_handler.py paramiko/ber.py paramiko/buffered_pipe.py paramiko/channel.py paramiko/client.py paramiko/common.py paramiko/dsskey.py paramiko/ecdsakey.py paramiko/file.py paramiko/hostkeys.py paramiko/kex_gex.py paramiko/kex_group1.py paramiko/message.py paramiko/packet.py paramiko/pkey.py paramiko/primes.py paramiko/proxy.py paramiko/py3compat.py paramiko/server.py paramiko/sftp_client.py paramiko/transport.py paramiko/util.py paramiko/win_pageant.py setup.py sites/shared_conf.py sites/www/changelog.rst sites/www/conf.py sites/www/index.rst sites/www/installing.rst test.py tests/loop.py tests/stub_sftp.py tests/test_auth.py tests/test_client.py tests/test_file.py tests/test_hostkeys.py tests/test_kex.py tests/test_message.py tests/test_packetizer.py tests/test_pkey.py tests/test_sftp.py tests/test_sftp_big.py tests/test_transport.py tests/test_util.py
| * Fix import * and a bunch of PEP8 formattingScott Maxwell2014-03-071-23/+31
| |
| * Change conditional from PY3 to PY2 to be better prepared for a possible Py4.Scott Maxwell2013-11-191-4/+4
| |
| * Make sftp.open handle binary and text, more type conversionScott Maxwell2013-11-021-3/+7
| |
| * Changes inspired by the nischu7 branchScott Maxwell2013-11-011-2/+0
| |
| * Eliminate all uses of b'' syntax to allow for Python 2.5 supportScott Maxwell2013-11-011-10/+6
| |
| * More type conversionScott Maxwell2013-10-311-1/+1
| |
| * More type conversionScott Maxwell2013-10-311-1/+1
| |
| * Write to locals instead of globalsScott Maxwell2013-10-301-2/+2
| |
| * Add Py3 helpers to common.pyScott Maxwell2013-10-301-2/+45
| |
* | GSS-API / SSPI authenticated Diffie-Hellman Key Exchange and userSebastian Deiss2014-02-111-1/+12
| | | | | | | | | | | | | | authentication with Python 3 support Add Python 3 support for the GSS-API / SSPI authenticated Diffie-Hellman Key Exchange and user authentication. This patch supersedes pull request #250.
* | Merge branch scottkmaxwell:py3-support-without-py25 intoSebastian Deiss2014-02-111-2/+43
|/ | | SebastianDeiss:gssapi-py3-support
* Fixed a typo in the license header of most filesJeff Forcier2013-09-271-1/+1
| | | | | Conflicts: paramiko/proxy.py
* Add IO sleep to agent forward communications.Jeff Forcier2012-09-231-0/+3
| | | | | | | | | Without this, use of agent forwarding causes high CPU usage on some clients. (cherry picked from commit 3030589aaafdba0a3b14183e0d03488580d21bf5) Conflicts: paramiko/agent.py
* Use Crypto.Random rather than Crypto.Util.RandomPool.Gary van der Merwe2010-08-031-2/+2
|
* fix my email address to be the current one.Robey Pointer2009-07-191-1/+1
|
* [project @ robey@lag.net-20080518224525-cjid4qbn81eve3zt]Robey Pointer2008-05-181-2/+2
| | | | merge dwayne litzenberger's fixes for randpool on windows.
* [project @ robey@lag.net-20080121194216-q3n5ovpeyiqjua6p]Robey Pointer2008-01-211-14/+2
| | | | | patch from dwayne litzenberger to fix the PRNG to be more resilient when using windows, and some forking/threading environments.
* [project @ robey@lag.net-20071119194455-u69od9ynz2n4x7ch]Robey Pointer2007-11-191-4/+4
| | | | merge tab fix
* [project @ robey@lag.net-20070213191706-v8djxd4jiunb3his]Robey Pointer2007-02-131-1/+1
| | | | bump copyright year to 2007
* [project @ robey@lag.net-20060228030121-67362d86a18a352b]Robey Pointer2006-02-271-0/+1
| | | | heh, this import will always fail unless we have 'os' handy
* [project @ robey@lag.net-20060220005934-58d0df2920e799b5]Robey Pointer2006-02-191-1/+1
| | | | update copyright year
* [project @ robey@master-shake.local-20060131005629-3f1bfead54bd5283]Robey Pointer2006-01-301-0/+1
| | | | add more logging to sftp client
* [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-75]Robey Pointer2005-10-311-2/+5
| | | | fix a few windows bugs (and broken str() on SFTPAttributes) reported by grzegorz makarewicz
* [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-65]Robey Pointer2005-10-131-3/+3
| | | | remove unnecessary shebangs, fix import lines to be explicit about imports from within paramiko, and a bit of whitespace cleanup
* [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-59]Robey Pointer2005-09-211-1/+3
| | | | add auth_none and auth_interactive to support 'no auth' and 'keyboard-interactive auth'; for password auth, add a mode where it will try to fallback to keyboard-interactive in a pinch
* [project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-54]Robey Pointer2005-08-091-2/+0
| | | | smooth BaseTransport and Transport together, and move the auth stuff into AuthHandler -- an improvement i made in jaramiko and decided deserved to be backported