mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-22 22:15:22 +01:00
Python3 fixes.
This commit is contained in:
parent
ee5dde1cde
commit
b2775c9cf9
@ -2095,7 +2095,7 @@ class KexDH(object): # pragma: nocover
|
||||
self.__hostkey_type, hostkey_type_len, ptr = KexDH.__get_bytes(hostkey, ptr)
|
||||
|
||||
# If this is an RSA certificate, skip over the nonce.
|
||||
if self.__hostkey_type.startswith('ssh-rsa-cert-v0'):
|
||||
if self.__hostkey_type.startswith(b'ssh-rsa-cert-v0'):
|
||||
nonce, nonce_len, ptr = KexDH.__get_bytes(hostkey, ptr)
|
||||
|
||||
# The public key exponent.
|
||||
@ -2108,7 +2108,7 @@ class KexDH(object): # pragma: nocover
|
||||
|
||||
# If this is an RSA certificate, continue parsing to extract the CA
|
||||
# key.
|
||||
if self.__hostkey_type.startswith('ssh-rsa-cert-v0'):
|
||||
if self.__hostkey_type.startswith(b'ssh-rsa-cert-v0'):
|
||||
# Skip over the serial number.
|
||||
ptr += 8
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user