summaryrefslogtreecommitdiff
path: root/paramiko/pkey.py
Commit message (Collapse)AuthorAgeFilesLines
* Nuke now extraneous chmodJeff Forcier2023-01-161-2/+0
|
* Switch an os.open call to use kwargs now that we're py3 onlyJeff Forcier2023-01-161-8/+14
| | | | Also shuffle comments around to be more local to subjects.
* No more (object)ionsJeff Forcier2023-01-161-2/+2
|
* No more PKey.__cmp__Jeff Forcier2023-01-121-18/+0
|
* Swap around __bytes__/__str__ for some classesJeff Forcier2023-01-121-1/+2
| | | | Plus related updates to tests, docstrings, changelog
* Start fixing up blatantly wrong-under-py3 docstring typesJeff Forcier2023-01-121-5/+5
|
* Last spot of six removalJeff Forcier2023-01-121-3/+2
|
* blackenJeff Forcier2023-01-111-1/+1
|
* Update encode/decodebytesJeff Forcier2023-01-091-1/+1
|
* string_types -> strJeff Forcier2023-01-091-3/+3
|
* Move b, u helpers to util module for nowJeff Forcier2023-01-091-1/+2
| | | | Later on we can likely nuke many uses of these
* Merge branch '2.10' into 2.11Jeff Forcier2022-05-201-0/+2
|\
| * Merge branch '2.9' into 2.10Jeff Forcier2022-05-201-0/+2
| |\
| | * Whitespace onlyPoleguy2022-05-201-1/+1
| | | | | | | | | to make CI pass
| | * fix for list index out of rangePoleguy2022-05-201-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to recreate bug: pip install vorta rm ~/.ssh/.known_hosts.lock touch ~/.ssh/.known_hosts.lock vorta -f Traceback (most recent call last): File "/opt/anaconda/anaconda3/bin/vorta", line 10, in <module> sys.exit(main()) File "/opt/anaconda/anaconda3/lib/python3.6/site-packages/vorta/__main__.py", line 40, in main app = VortaApp(sys.argv, single_app=True) File "/opt/anaconda/anaconda3/lib/python3.6/site-packages/vorta/application.py", line 59, in __init__ self.open_main_window_action() File "/opt/anaconda/anaconda3/lib/python3.6/site-packages/vorta/application.py", line 80, in open_main_window_action self.main_window = MainWindow(self) File "/opt/anaconda/anaconda3/lib/python3.6/site-packages/vorta/views/main_window.py", line 37, in __init__ self.repoTab = RepoTab(self.repoTabSlot) File "/opt/anaconda/anaconda3/lib/python3.6/site-packages/vorta/views/repo_tab.py", line 55, in __init__ self.init_ssh() File "/opt/anaconda/anaconda3/lib/python3.6/site-packages/vorta/views/repo_tab.py", line 88, in init_ssh keys = get_private_keys() File "/opt/anaconda/anaconda3/lib/python3.6/site-packages/vorta/utils.py", line 74, in get_private_keys parsed_key = key_format.from_private_key_file(key_file) File "/opt/anaconda/anaconda3/lib/python3.6/site-packages/paramiko/pkey.py", line 235, in from_private_key_file key = cls(filename=filename, password=password) File "/opt/anaconda/anaconda3/lib/python3.6/site-packages/paramiko/rsakey.py", line 55, in __init__ self._from_private_key_file(filename, password) File "/opt/anaconda/anaconda3/lib/python3.6/site-packages/paramiko/rsakey.py", line 175, in _from_private_key_file data = self._read_private_key_file("RSA", filename, password) File "/opt/anaconda/anaconda3/lib/python3.6/site-packages/paramiko/pkey.py", line 308, in _read_private_key_file data = self._read_private_key(tag, f, password) File "/opt/anaconda/anaconda3/lib/python3.6/site-packages/paramiko/pkey.py", line 320, in _read_private_key m = self.BEGIN_TAG.match(lines[start]) IndexError: list index out of range Segmentation fault (core dumped)
* | | Merge branch '2.10'Jeff Forcier2022-04-251-1/+1
|\ \ \ | |/ /
| * | Merge branch '2.9' into 2.10Jeff Forcier2022-04-251-1/+1
| |\ \ | | |/
| | * don't throw exception when comparing PKey to non-PKeyChristopher Papke2022-04-251-1/+1
| | |
* | | Fix Free Software Foundation addressPaul Howarth2022-03-151-1/+1
|/ / | | | | | | They moved from Temple Place to Franklin Street in 2005.
* | Use args, not kwargs, to retain py2 compat for nowJeff Forcier2022-03-141-2/+3
| |
* | Fix CVE re: PKey.write_private_key chmod raceJeff Forcier2022-03-111-1/+11
|/ | | | CVE-2022-24302 (see changelog for link)
* Add support for RSA SHA2 host and public keysJeff Forcier2021-12-231-2/+9
| | | | | | Includes a handful of refactors and new semiprivate attributes on Transport and AuthHandler for better test visibility.
* Roll back ABC using kit from contributed patchJeff Forcier2021-11-281-6/+3
| | | | | | - blew up good for me for reasons I don't entirely grok - also feels like too big of a change to do in a patch release - is not a critical piece of the bugfix - NotImplementedError is fine for now
* Check all data on keys when comparing for equalityJosh Snyder2021-11-281-2/+12
| | | | | This eliminates the possibility that a hash collision results in two PKey objects that == each other.
* Fixing syntax for the "note" directiveMark Watts2020-09-111-1/+2
|
* fix loading new openssh private key format when no paddingPierce Lopez2019-12-051-13/+23
|
* Blacken (again? wtf black)Jeff Forcier2019-12-031-3/+1
|
* Comment a particularly egregious example of message passingJeff Forcier2019-12-031-0/+3
|
* Remove a few spots of old style string formattingJeff Forcier2019-12-031-3/+3
|
* Rename old/new_format to be slightly more accurate (pem vs openssh)Jeff Forcier2019-12-031-4/+4
|
* Modify exception raised by weird key subclasses w/ bad pkformatJeff Forcier2019-12-031-0/+4
| | | | Not sure this can even really happen though
* Privatize new pkformat variableJeff Forcier2019-12-031-4/+4
| | | | Would like to rewrite later probably
* BlackenJeff Forcier2019-12-031-3/+1
|
* Use raw stringJared Hobbs2019-04-251-2/+2
|
* add noqa commentsJared Hobbs2019-04-241-2/+4
|
* handle exception that can occur if no regex matchJared Hobbs2019-03-201-2/+2
|
* ignore few rounds in bcrypt kdf callJared Hobbs2018-12-101-1/+9
|
* try to fix testJared Hobbs2018-11-271-3/+3
|
* blacken, testsJared Hobbs2018-11-271-2/+2
|
* blackenJared Hobbs2018-11-271-5/+5
|
* blackenJared Hobbs2018-11-271-37/+39
|
* add support for new OpenSSH private key formatJared Hobbs2018-11-271-12/+179
| | | | This work is based off the work done in https://github.com/paramiko/paramiko/pull/618
* Blacken under black 18.5b0Jeff Forcier2018-05-291-2/+4
|
* Blacken Paramiko on 2.4Chris Rose2018-05-171-49/+51
|
* flake8 for previous changesetJeff Forcier2017-10-111-2/+4
|
* String format modernization, part 11070-remove-python26-and-33Jeff Forcier2017-10-101-2/+2
| | | | | | | 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.
* Use new(er)-style string formatting, {} instead of {0}Jeff Forcier2017-10-101-6/+6
|
* Python 3 fixes re #10421042-intJeff Forcier2017-08-281-2/+2
|
* flake8Jeff Forcier2017-08-281-8/+8
|
* This isn't required when one is just calling asbytes()Jeff Forcier2017-08-281-1/+0
|