mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-30 12:47:48 +02:00
Generate random I2PControl tokens.
This commit is contained in:
parent
c7f4a79b2c
commit
109127a39e
2 changed files with 29 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue