diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2021-12-13 15:55:36 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2021-12-23 00:31:01 -0500 |
commit | 363a28d94cada17f012c1604a3c99c71a2bda003 (patch) | |
tree | 6979a1d39ced84c3b29d366a0026db5fd9a62851 /paramiko/common.py | |
parent | dfffaeaa0170c784307d1c89dad60528a59b6ff2 (diff) | |
download | paramiko-363a28d94cada17f012c1604a3c99c71a2bda003.tar.gz |
Add support for RSA SHA2 host and public keys
Includes a handful of refactors and new semiprivate
attributes on Transport and AuthHandler for better
test visibility.
Diffstat (limited to 'paramiko/common.py')
-rw-r--r-- | paramiko/common.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/paramiko/common.py b/paramiko/common.py index 7bd0cb10..55dd4bdf 100644 --- a/paramiko/common.py +++ b/paramiko/common.py @@ -29,7 +29,8 @@ from paramiko.py3compat import byte_chr, PY2, long, b MSG_DEBUG, MSG_SERVICE_REQUEST, MSG_SERVICE_ACCEPT, -) = range(1, 7) + MSG_EXT_INFO, +) = range(1, 8) (MSG_KEXINIT, MSG_NEWKEYS) = range(20, 22) ( MSG_USERAUTH_REQUEST, @@ -68,6 +69,7 @@ cMSG_UNIMPLEMENTED = byte_chr(MSG_UNIMPLEMENTED) cMSG_DEBUG = byte_chr(MSG_DEBUG) cMSG_SERVICE_REQUEST = byte_chr(MSG_SERVICE_REQUEST) cMSG_SERVICE_ACCEPT = byte_chr(MSG_SERVICE_ACCEPT) +cMSG_EXT_INFO = byte_chr(MSG_EXT_INFO) cMSG_KEXINIT = byte_chr(MSG_KEXINIT) cMSG_NEWKEYS = byte_chr(MSG_NEWKEYS) cMSG_USERAUTH_REQUEST = byte_chr(MSG_USERAUTH_REQUEST) @@ -109,6 +111,7 @@ MSG_NAMES = { MSG_SERVICE_REQUEST: "service-request", MSG_SERVICE_ACCEPT: "service-accept", MSG_KEXINIT: "kexinit", + MSG_EXT_INFO: "ext-info", MSG_NEWKEYS: "newkeys", 30: "kex30", 31: "kex31", |