Generate random I2PControl tokens.

This commit is contained in:
EinMByte 2015-08-02 14:46:39 +02:00
parent c7f4a79b2c
commit 109127a39e
2 changed files with 29 additions and 4 deletions

View file

@ -137,6 +137,12 @@ private:
*/
bool authenticate(const PropertyTree& pt, Response& response);
/**
* Generate a random authentication token.
* @return 8 random bytes as a hexadecimal string
*/
std::string generateToken() const;
// Method handlers
void handleAuthenticate(const PropertyTree& pt, Response& response);
void handleEcho(const PropertyTree& pt, Response& response);