mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Forgot to commit retroshare-nogui and forgot to say recompile of the GUI needed.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4538 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
687b2ecd36
commit
d870412523
@ -83,10 +83,12 @@ void NotifyTxt::notifyChat()
|
||||
return;
|
||||
}
|
||||
|
||||
std::string NotifyTxt::askForPassword(const std::string& key_details,bool prev_is_bad)
|
||||
bool NotifyTxt::askForPassword(const std::string& key_details, bool prev_is_bad, std::string& password)
|
||||
{
|
||||
char *password = getpass(("Please enter GPG password for key "+key_details+": ").c_str()) ;
|
||||
return std::string(password);
|
||||
char *passwd = getpass(("Please enter GPG password for key "+key_details+": ").c_str()) ;
|
||||
password = passwd;
|
||||
|
||||
return !password.empty();
|
||||
}
|
||||
|
||||
|
||||
|
@ -40,7 +40,7 @@ class NotifyTxt: public NotifyBase
|
||||
virtual void notifyListChange(int list, int type);
|
||||
virtual void notifyErrorMsg(int list, int sev, std::string msg);
|
||||
virtual void notifyChat();
|
||||
virtual std::string askForPassword(const std::string& key_details,bool prev_is_bad) ;
|
||||
virtual bool askForPassword(const std::string& key_details, bool prev_is_bad, std::string& password);
|
||||
|
||||
private:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user