From fd452af0883ef749d8da9b6f406e771b80be2371 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 12 Jul 2017 23:03:17 +0200 Subject: [PATCH] removed some debut output that perturbated the passwd command line --- libretroshare/src/rsserver/rsloginhandler.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libretroshare/src/rsserver/rsloginhandler.cc b/libretroshare/src/rsserver/rsloginhandler.cc index 7c031ef45..453f5442c 100644 --- a/libretroshare/src/rsserver/rsloginhandler.cc +++ b/libretroshare/src/rsserver/rsloginhandler.cc @@ -193,7 +193,9 @@ extern BOOL WINAPI CryptUnprotectData( bool RsLoginHandler::tryAutoLogin(const RsPeerId& ssl_id,std::string& ssl_passwd) { +#ifdef DEBUG_RSLOGINHANDLER std::cerr << "RsTryAutoLogin()" << std::endl; +#endif /******************************** WINDOWS/UNIX SPECIFIC PART ******************/ #ifndef __HAIKU__ @@ -202,7 +204,9 @@ bool RsLoginHandler::tryAutoLogin(const RsPeerId& ssl_id,std::string& ssl_passwd gchar *passwd = NULL; +#ifdef DEBUG_RSLOGINHANDLER std::cerr << "Using attribute: " << ssl_id << std::endl; +#endif if( gnome_keyring_find_password_sync(&my_schema, &passwd,"RetroShare SSL Id",ssl_id.toStdString().c_str(),NULL) == GNOME_KEYRING_RESULT_OK ) { std::cerr << "Got SSL passwd ********************" /*<< passwd*/ << " from gnome keyring" << std::endl; @@ -211,7 +215,9 @@ bool RsLoginHandler::tryAutoLogin(const RsPeerId& ssl_id,std::string& ssl_passwd } else { +#ifdef DEBUG_RSLOGINHANDLER std::cerr << "Could not get passwd from gnome keyring" << std::endl; +#endif return false ; }