diff options
author | Josh Snyder <josh.snyder@robinhood.com> | 2021-10-14 18:29:37 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2021-11-28 20:24:17 -0500 |
commit | 2c574ea29456726177eece3d8f740182ea34f0b4 (patch) | |
tree | 8da9da8ddc7bb958e35a9601f51e9ab6a63d77ea /paramiko/agent.py | |
parent | 0344146de514ab1f2643bad5bfce0a92d4dcf1ee (diff) |
Check all data on keys when comparing for equality
This eliminates the possibility that a hash collision results in two PKey
objects that == each other.
Diffstat (limited to 'paramiko/agent.py')
-rw-r--r-- | paramiko/agent.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/paramiko/agent.py b/paramiko/agent.py index 622b95e4..c7c8b7cb 100644 --- a/paramiko/agent.py +++ b/paramiko/agent.py @@ -407,6 +407,10 @@ class AgentKey(PKey): def get_name(self): return self.name + @property + def _fields(self): + raise NotImplementedError + def sign_ssh_data(self, data): msg = Message() msg.add_byte(cSSH2_AGENTC_SIGN_REQUEST) |