diff --git a/sshkey_paramiko.r2py b/sshkey_paramiko.r2py index 8135176..043e0d7 100644 --- a/sshkey_paramiko.r2py +++ b/sshkey_paramiko.r2py @@ -83,7 +83,7 @@ class _sshkey_paramiko_BER(object): ber_obj _sshkey_paramiko_BER(data) - list = ber_obj.decode() + list = ber_obj.decode_next() """ @@ -94,9 +94,8 @@ class _sshkey_paramiko_BER(object): def __init__(self, content=''): self.content = content self.idx = 0 - - def decode(self): - return self.decode_next() + + # Removed decode function, as it is not allowed by safe.py def decode_next(self): if self.idx >= len(self.content): @@ -373,7 +372,7 @@ def _sshkey_paramiko_read_private_key(tag, openfile, password=None): # private key file contains: # keylist = { version = 0, n, e, d, p, q, d mod p-1, d mod q-1, q**-1 mod p } try: - keylist = _sshkey_paramiko_BER(keydata).decode() + keylist = _sshkey_paramiko_BER(keydata).decode_next() except sshkey_paramiko_BERException: raise sshkey_paramiko_SSHException('Unable to parse key file')