summaryrefslogtreecommitdiff
path: root/paramiko/ber.py
Commit message (Collapse)AuthorAgeFilesLines
* No more (object)ionsJeff Forcier2023-01-161-1/+1
|
* flake8Jeff Forcier2023-01-111-1/+2
|
* blackenJeff Forcier2023-01-111-3/+3
|
* Move b, u helpers to util module for nowJeff Forcier2023-01-091-1/+1
| | | | Later on we can likely nuke many uses of these
* Remove or transmute all use of long()Jeff Forcier2023-01-091-1/+1
| | | | | | | - When wrapping literals: just go away - When wrapping variables whose values are already definitely integers (eg output of 'id()'): ditto - When wrapping variables of unknown provenance or which are definitely NOT integers: replaced with int()
* Migrate some byte related helpers aroundJeff Forcier2023-01-091-2/+2
| | | | | 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.
* Blacken under black 18.5b0Jeff Forcier2018-05-291-2/+4
|
* Blacken Paramiko on 2.4Chris Rose2018-05-171-7/+6
|
* String format modernization, part 11070-remove-python26-and-33Jeff Forcier2017-10-101-3/+5
| | | | | | | 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.
* Additional PEP8 fixes.Dorian Pula2017-05-311-2/+4
|
* Converted all staticmethod/classmethod instances to decorators.Jacob Beck2014-10-141-3/+3
|
* Fix import * and a bunch of PEP8 formattingScott Maxwell2014-03-071-9/+9
|
* Changes inspired by the nischu7 branchScott Maxwell2013-11-011-2/+2
|
* Convert and detect types properly, use helper constants, use StringIO and rangeScott Maxwell2013-10-301-6/+6
|
* Fix message sendingScott Maxwell2013-10-301-4/+7
| | | | Create constants for byte messages, implement asbytes so many methods can take Message and key objects directly and split get_string into get_text and get_binary. Also, change int handling to use mpint with a flag whenever the int is greater than 32 bits.
* Fix importsScott Maxwell2013-10-301-1/+2
|
* Fixed a typo in the license header of most filesJeff Forcier2013-09-271-1/+1
| | | | | Conflicts: paramiko/proxy.py
* fix my email address to be the current one.Robey Pointer2009-07-191-1/+1
|
* [project @ robey@lag.net-20070213191706-v8djxd4jiunb3his]Robey Pointer2007-02-131-1/+1
| | | | bump copyright year to 2007
* [project @ robey@lag.net-20060220005934-58d0df2920e799b5]Robey Pointer2006-02-191-1/+1
| | | | update copyright year
* [project @ robey@master-shake.local-20060115063008-4f68552398868788]Robey Pointer2006-01-141-2/+3
| | | | fix a bunch of pychecker warnings, some of which were actual (but unlikely) bugs
* [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-29]Robey Pointer2005-07-101-12/+12
| | | | a bunch of silly changes where i was trying to fix pychecker warnings before i decided it wasnt worth the effort
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-154]Robey Pointer2005-02-281-1/+1
| | | | | | | even better 1.2 lapras re-bump the version # to 1.2 (with a new date since i added more stuff). add 2005 to the copyright date in a bunch of files.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-61]Robey Pointer2004-06-101-1/+1
| | | | | | no more Foobar fix "Foobar" to be "Paramiko" in the one place i missed it in all the gpl headers. sigh. :)
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-40]Robey Pointer2004-04-051-2/+2
| | | | | | | | | | | | | | | | add dss key generation too, and fix some bugs added the ability to generate dss keys and write private dss key files, similar to rsa. in the process, fixed a couple of bugs with ber encoding and writing password-encrypted key files. the key has to be padded to the iblock size of the cipher -- it's very difficult to determine how the others do this, so i just add random bytes to the end. fixed the simple demo to use Transport's (host, port) constructor for simplicity, and fixed a bug where the standard demo's DSS login wouldn't work. also, move the common logfile setup crap into util so all the demos can just call that one.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-37]Robey Pointer2004-04-051-8/+36
| | | | | | | | | | | | can now generate rsa keys (not dss yet) added functionality to ber to create ber streams. added some common methods to PKey to allow dumping the key to base64 (the format used by openssh for public key files and host key lists), and a factory for creating a key from a private key file, and a common way to save private keys. RSAKey luckily didn't have to change that much. also added a factory method to RSAKey to generate a new key.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-22]Robey Pointer2004-01-041-0/+18
| | | | | | | | | fix MANIFEST.in, change version numbers to 0.9-doduo, fix LPGL notices fixed MANIFEST.in to include the demo scripts, LICENSE, and ChangeLog. upped everything to version 0.9-doduo. fixed the copyright notice, and added the LGPL banner to the top of every python file.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-20]Robey Pointer2004-01-041-38/+8
| | | | | | | | | | | | | | | | | | | more docs, and password-protected key files can now be read lots more documentation, some of it moved out of the README file, which is now much smaller and less rambling. repr(Transport) now reports the number of bits used in the cipher. cleaned up BER to use util functions, and throw a proper exception (the new BERException) on error. it doesn't ever have to be a full BER decoder, but it can at least comb its hair and tuck in its shirt. lots of stuff added to PKey.read_private_key_file so it can try to decode password-protected key files. right now it only understands "DES-EDE3-CBC" format, but this is the only format i've seen openssh make so far. if the key is password-protected, but no password was given, a new exception (PasswordRequiredException) is raised so an outer layer can ask for a password and try again.
* [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-14]Robey Pointer2003-12-271-0/+112
move the paramiko files into a paramiko/ folder. just moving the files into a folder. it won't build this way yet.