Renew challenge on expiry
This commit is contained in:
@@ -113,6 +113,17 @@ private:
|
||||
*/
|
||||
void processMessage(SignedMessage* message);
|
||||
|
||||
/**
|
||||
* @brief Checks that the message is valid and prepares a challenge.
|
||||
*
|
||||
* This function is also called when a challenge response arrives too late.
|
||||
*
|
||||
* @param message The message to respond to
|
||||
*
|
||||
* Note: Prepares the response in the outgoing message buffer.
|
||||
*/
|
||||
void checkAndPrepareChallenge(Message* message);
|
||||
|
||||
/**
|
||||
* @brief Prepare a server challenge for a local or socket message.
|
||||
*
|
||||
|
@@ -59,8 +59,11 @@ enum class MessageResult: uint8_t {
|
||||
/// @brief A message is already being processed
|
||||
TooManyRequests = 8,
|
||||
|
||||
InvalidUrlParameter = 10,
|
||||
InvalidResponseAuthentication = 11,
|
||||
/// @brief The received message result was invalid
|
||||
InvalidMessageResult = 9,
|
||||
|
||||
/// @brief An invalid Url parameter was set sending a message to the device over a local connection
|
||||
InvalidUrlParameter = 10,
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user