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:
thunder2 2011-08-05 21:17:08 +00:00
parent 687b2ecd36
commit d870412523
2 changed files with 6 additions and 4 deletions

View File

@ -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();
}

View File

@ -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: