Codechange: make network crypto enum classes
This commit is contained in:
@@ -222,10 +222,10 @@ public:
|
||||
class NetworkAuthenticationClientHandler : public NetworkAuthenticationHandler {
|
||||
public:
|
||||
/** The processing result of receiving a request. */
|
||||
enum RequestResult : uint8_t {
|
||||
AWAIT_USER_INPUT, ///< We have requested some user input, but must wait on that.
|
||||
READY_FOR_RESPONSE, ///< We do not have to wait for user input, and can immediately respond to the server.
|
||||
INVALID, ///< We have received an invalid request.
|
||||
enum class RequestResult : uint8_t {
|
||||
AwaitUserInput, ///< We have requested some user input, but must wait on that.
|
||||
ReadyForResponse, ///< We do not have to wait for user input, and can immediately respond to the server.
|
||||
Invalid, ///< We have received an invalid request.
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -258,10 +258,10 @@ public:
|
||||
class NetworkAuthenticationServerHandler : public NetworkAuthenticationHandler {
|
||||
public:
|
||||
/** The processing result of receiving a response. */
|
||||
enum ResponseResult : uint8_t {
|
||||
AUTHENTICATED, ///< The client was authenticated successfully.
|
||||
NOT_AUTHENTICATED, ///< All authentications for this handler have been exhausted.
|
||||
RETRY_NEXT_METHOD, ///< The client failed to authenticate, but there is another method to try.
|
||||
enum class ResponseResult : uint8_t {
|
||||
Authenticated, ///< The client was authenticated successfully.
|
||||
NotAuthenticated, ///< All authentications for this handler have been exhausted.
|
||||
RetryNextMethod, ///< The client failed to authenticate, but there is another method to try.
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user