Codechange: make network crypto enum classes

This commit is contained in:
Rubidium
2025-02-06 16:30:28 +01:00
committed by rubidium42
parent fef2baf041
commit 8ca03a3766
7 changed files with 47 additions and 47 deletions
+8 -8
View File
@@ -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.
};
/**