new menus for account management
During startup, it is checked, if the game account needs to be unlocked by password. If so, the password is asked and applied. If no game account exists yet, the creation of a new account is offered. new command "mypubkey": returns public key of game account, or empty string, if no account exists or it is unusable (due to missing password, for example) DOCREF mypubkey
This commit is contained in:
@@ -880,6 +880,15 @@ void authsetup(char **args, int numargs) // set up private and public keys
|
||||
}
|
||||
COMMAND(authsetup, "v");
|
||||
|
||||
void mypubkey()
|
||||
{
|
||||
string res = "";
|
||||
if(sk) bin2hex(res, sk + 32, 32);
|
||||
result(res);
|
||||
}
|
||||
COMMAND(mypubkey, "");
|
||||
|
||||
|
||||
///////////////////////////////////////////////// misc key management //////////////////////////////////////////////////////
|
||||
// * used to sign certs or other stuff
|
||||
// * dev/admin/master keys
|
||||
|
||||
Reference in New Issue
Block a user