Added support for Auto-login

- Using rc4 to store ssl pword on file for linux,  for windows already using cryptprotect
 - yes its not safe, but its the user's choice to keep pword or not
 - consider using method closely hooked to linux kernel (another layer of obfuscation)
 - windows i believe is stronger (because its proprietary/ heavily obfuscated)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2690 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
chrisparker126 2010-04-08 12:02:46 +00:00
parent 6b8f62d8f0
commit 658946bcd2
3 changed files with 155 additions and 27 deletions

View file

@ -31,7 +31,7 @@
#include <sstream>
#include "pqi/authssl.h"
#include "pqi/authgpg.h"
#include "rsiface/rsinit.h"
#include "util/rsdebug.h"
const int p3facemsgzone = 11453;
@ -157,6 +157,8 @@ void RsServer::ConfigFinalSave()
{
/* force saving of transfers TODO */
//ftserver->saveFileTransferStatus();
if(!RsInit::getAutoLogin())
RsInit::RsClearAutoLogin();
//AuthSSL::getAuthSSL()->FinalSaveCertificates();
mConfigMgr->completeConfiguration();
@ -164,6 +166,8 @@ void RsServer::ConfigFinalSave()
void RsServer::rsGlobalShutDown()
{
ConfigFinalSave(); // save configuration before exit
mConnMgr->shutdown(); /* Handles UPnP */
}