Fixed compile of the changes in rsloginhandler on Windows.

Fixed german language.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4009 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-02-02 22:38:56 +00:00
parent 0dcef10ec2
commit 78aacb927f
4 changed files with 21 additions and 21 deletions

View file

@ -249,14 +249,9 @@ bool RsLoginHandler::tryAutoLogin(const std::string& ssl_id,std::string& ssl_pas
#else
/* try to load from file */
std::string entropy = RsInitConfig::load_cert;
std::string entropy = getSSLPasswdFileName(ssl_id);
/* get the data out */
/* open the data to the file */
std::string passwdfile = RsInitConfig::configDir;
passwdfile += RsInitConfig::dirSeperator + configKeyDir + RsInitConfig::dirSeperator;
passwdfile += "help.dta";
DATA_BLOB DataIn;
DATA_BLOB DataEnt;
DATA_BLOB DataOut;
@ -269,7 +264,8 @@ bool RsLoginHandler::tryAutoLogin(const std::string& ssl_id,std::string& ssl_pas
char *dataptr = NULL;
int datalen = 0;
FILE *fp = fopen(passwdfile.c_str(), "rb");
/* open the data to the file */
FILE *fp = fopen(getAutologinFileName(ssl_id).c_str(), "rb");
if (fp != NULL)
{
fseek(fp, 0, SEEK_END);
@ -445,7 +441,7 @@ bool RsLoginHandler::enableAutoLogin(const std::string& ssl_id,const std::string
#else /* windows */
/* store password encrypted in a file */
std::string entropy = RsInitConfig::load_cert;
std::string entropy = getSSLPasswdFileName(ssl_id);
DATA_BLOB DataIn;
DATA_BLOB DataEnt;
@ -493,15 +489,11 @@ bool RsLoginHandler::enableAutoLogin(const std::string& ssl_id,const std::string
std::cerr << std::endl;
**********/
/* save the data to the file */
std::string passwdfile = RsInitConfig::configDir;
passwdfile += RsInitConfig::dirSeperator + configKeyDir + RsInitConfig::dirSeperator;
passwdfile += "help.dta";
//std::cerr << "Save to: " << passwdfile;
//std::cerr << std::endl;
FILE *fp = fopen(passwdfile.c_str(), "wb");
/* save the data to the file */
FILE *fp = fopen(getAutologinFileName(ssl_id).c_str(), "wb");
if (fp != NULL)
{
fwrite(DataOut.pbData, 1, DataOut.cbData, fp);

View file

@ -10473,7 +10473,7 @@ Bist Du sicher?</translation>
<location line="+30"/>
<location line="+2"/>
<source>Warning</source>
<translation type="unfinished"></translation>
<translation>Warnung</translation>
</message>
<message>
<location line="-2"/>
@ -10482,7 +10482,11 @@ Bist Du sicher?</translation>
Your PGP passwd will not be stored.
This choice can be reverted in settings.</source>
<translation type="unfinished"></translation>
<translation>Das Passwort deines SSL Zertifikates (deines Standortes) wird verschlüsselt in deinem Gnome Keyring gespeichert.
Dein PGP wird nicht gespeichert.
Du kannst die Auswahl in den Optionen zurücksetzen.</translation>
</message>
<message>
<location line="+2"/>
@ -10491,7 +10495,11 @@ This choice can be reverted in settings.</source>
Your PGP passwd will not be stored.
This choice can be reverted in settings.</source>
<translation type="unfinished"></translation>
<translation>Das Passwort deines SSL Zertifikates (deines Standortes) wird verschlüsselt in der Datei keys/help.dta gespeichert- Das ist nicht sicher.
Dein PGP wird nicht gespeichert.
Du kannst die Auswahl in den Optionen zurücksetzen.</translation>
</message>
</context>
<context>