mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-23 16:21:29 -04:00
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:
parent
6b8f62d8f0
commit
658946bcd2
3 changed files with 155 additions and 27 deletions
|
@ -71,7 +71,7 @@ class RsInit
|
|||
/* Login SSL */
|
||||
static bool LoadPassword(std::string id, std::string passwd) ;
|
||||
|
||||
/* Final Certificate load. This can be called if:
|
||||
/** Final Certificate load. This can be called if:
|
||||
* a) InitRetroshare() returns true -> autoLoad/password Set.
|
||||
* b) SelectGPGAccount() && LoadPassword()
|
||||
*/
|
||||
|
@ -83,6 +83,11 @@ class RsInit
|
|||
static std::string RsProfileConfigDirectory();
|
||||
static bool setStartMinimised() ;
|
||||
|
||||
static int getSslPwdLen();
|
||||
static bool getAutoLogin();
|
||||
static void setAutoLogin(bool autoLogin);
|
||||
static bool RsClearAutoLogin() ;
|
||||
|
||||
|
||||
private:
|
||||
/* PreLogin */
|
||||
|
@ -98,9 +103,10 @@ class RsInit
|
|||
/* Auto Login */
|
||||
static bool RsStoreAutoLogin() ;
|
||||
static bool RsTryAutoLogin() ;
|
||||
static bool RsClearAutoLogin() ;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue