You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
423 B
16 lines
423 B
#ifndef SECURITY_TOKEN_HH
|
|
#define SECURITY_TOKEN_HH
|
|
|
|
#include <string>
|
|
|
|
|
|
std::string create_random_token(unsigned length=38);
|
|
|
|
// deletes the token file, if it exists
|
|
void remove_token_file();
|
|
|
|
// creates a file with restrictive access rights that contains a security token and returns that token, too
|
|
std::string create_security_token(const std::string& server_address, unsigned port_nr, const std::string& path);
|
|
|
|
#endif
|