-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* SSH Host key checking - before initiating connection, set preferred_key (types) to be those that we already possess for the host (if any) - when checking known_hosts, cater for ports other than 22 - if hostkey specified, remote host /must/ match that hostkey Formatting: - reformat function definition for easier reading of arguments - remove use of temporary single-character variables for clarity sake * more tests * remove breaking test for incorrect host key padding * change hostkey var name to be explicit on type hostkey_b64 * revert to raising SSHError * fix: comments & whitespace tidy * - move known_hosts_lookup (the host entry in known_hosts, with optional port number appended) - move into if hostkey_verify, so that setting this False won't check, even when hostkey_b64 supplied - when checking host keys, use the existing is_known_host bool and raise Exception code (neater, fewer code paths) * check known_hosts only if hostkey_b64 not specified * remove unused import * Housekeeping & Cleaning - hostkey_b64 object creation - raise new (instead of reusing) exception with friendlier message - import NetconfFramingError (used on line 210 in _parse11 - remove unused ncclient.xml_ import - pep8 spacing
- Loading branch information
Showing
3 changed files
with
112 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters