diff options
-rw-r--r-- | paramiko/kex_curve25519.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paramiko/kex_curve25519.py b/paramiko/kex_curve25519.py index b092afae..4b9f6b00 100644 --- a/paramiko/kex_curve25519.py +++ b/paramiko/kex_curve25519.py @@ -20,7 +20,8 @@ class KexCurve25519(object): self.transport = transport self.key = None - def is_available(self): + @classmethod + def is_available(cls): try: X25519PrivateKey.generate() except UnsupportedAlgorithm: |