From d53ff42812fc78db9757b4daf338e23f825313f9 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Mon, 8 Jul 2013 20:34:44 +0900 Subject: pep8 --- src/leap/crypto/srpauth.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/leap') diff --git a/src/leap/crypto/srpauth.py b/src/leap/crypto/srpauth.py index 8e228e79..12c769cf 100644 --- a/src/leap/crypto/srpauth.py +++ b/src/leap/crypto/srpauth.py @@ -51,18 +51,21 @@ class SRPAuthConnectionError(SRPAuthenticationError): """ pass + class SRPAuthUnknownUser(SRPAuthenticationError): """ Exception raised when trying to authenticate an unknown user """ pass + class SRPAuthBadStatusCode(SRPAuthenticationError): """ Exception raised when we received an unknown bad status code """ pass + class SRPAuthNoSalt(SRPAuthenticationError): """ Exception raised when we don't receive the salt param at a @@ -70,6 +73,7 @@ class SRPAuthNoSalt(SRPAuthenticationError): """ pass + class SRPAuthNoB(SRPAuthenticationError): """ Exception raised when we don't receive the B param at a specific @@ -77,12 +81,14 @@ class SRPAuthNoB(SRPAuthenticationError): """ pass + class SRPAuthBadDataFromServer(SRPAuthenticationError): """ Generic exception when we receive bad data from the server. """ pass + class SRPAuthJSONDecodeError(SRPAuthenticationError): """ Exception raised when there's a problem decoding the JSON content @@ -90,12 +96,14 @@ class SRPAuthJSONDecodeError(SRPAuthenticationError): """ pass + class SRPAuthBadPassword(SRPAuthenticationError): """ Exception raised when the user provided a bad password to auth. """ pass + class SRPAuthVerificationFailed(SRPAuthenticationError): """ Exception raised when we can't verify the SRP data received from @@ -103,6 +111,7 @@ class SRPAuthVerificationFailed(SRPAuthenticationError): """ pass + class SRPAuthNoSessionId(SRPAuthenticationError): """ Exception raised when we don't receive a session id from the @@ -110,6 +119,7 @@ class SRPAuthNoSessionId(SRPAuthenticationError): """ pass + class SRPAuth(QtCore.QObject): """ SRPAuth singleton -- cgit v1.2.3