mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
fixed password handling
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5127 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b7dcbf3ef2
commit
ce5e6d3949
7 changed files with 73 additions and 68 deletions
|
@ -84,27 +84,6 @@ std::string pgp_pwd_callback(void * /*hook*/, const char *uid_hint, const char *
|
|||
rsicontrol->getNotify().askForPassword(uid_hint, prev_was_bad, password) ;
|
||||
|
||||
return password ;
|
||||
|
||||
// #ifdef GPG_DEBUG2
|
||||
// std::cerr << "pgp_pwd_callback() got GPG passwd from gui." << std::endl;
|
||||
// #endif
|
||||
//
|
||||
// if((void*)fd != NULL)
|
||||
// {
|
||||
// #ifndef WINDOWS_SYS
|
||||
// write(fd, password.c_str(), password.size());
|
||||
// write(fd, "\n", 1); /* needs a new line? */
|
||||
// #else
|
||||
// DWORD written = 0;
|
||||
// HANDLE winFd = (HANDLE) fd;
|
||||
// WriteFile(winFd, password.c_str(), password.size(), &written, NULL);
|
||||
// WriteFile(winFd, "\n", 1, &written, NULL);
|
||||
// #endif
|
||||
// }
|
||||
//
|
||||
// #ifdef GPG_DEBUG2
|
||||
// fprintf(stderr, "pgp_pwd_callback() password setted\n");
|
||||
// #endif
|
||||
}
|
||||
|
||||
void AuthGPG::init(const std::string& path_to_public_keyring,const std::string& path_to_secret_keyring)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue