diff options
author | George Hazan <george.hazan@gmail.com> | 2013-11-19 18:01:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-11-19 18:01:14 +0000 |
commit | d6e05cc3bca53565d9ca65377ab8b0b6190774b3 (patch) | |
tree | 76040facd4d0b82162069a19cae8f7f024bf1f65 /plugins/Watrack | |
parent | 2ef414538760079fa2955fca1a2c03d610459fa8 (diff) |
preparing to the transparent cyphering: end of MS_DB_CRYPT_ENCODESTRING/MS_DB_CRYPT_DECODESTRING
git-svn-id: http://svn.miranda-ng.org/main/trunk@6938 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack')
-rw-r--r-- | plugins/Watrack/lastfm/i_last_opt.inc | 9 | ||||
-rw-r--r-- | plugins/Watrack/myshows/i_myshows_opt.inc | 10 |
2 files changed, 2 insertions, 17 deletions
diff --git a/plugins/Watrack/lastfm/i_last_opt.inc b/plugins/Watrack/lastfm/i_last_opt.inc index f18b590a87..a8fb4457af 100644 --- a/plugins/Watrack/lastfm/i_last_opt.inc +++ b/plugins/Watrack/lastfm/i_last_opt.inc @@ -10,12 +10,7 @@ procedure SaveOpt; var
tmppass:array [0..255] of AnsiChar;
begin
- if lfm_password<>nil then
- begin
- StrCopy(tmppass,lfm_password);
- CallService(MS_DB_CRYPT_ENCODESTRING,StrLen(tmppass)+1,lparam(@tmppass));
- end;
- DBWriteString(0,PluginShort,optPassword,tmppass);
+ DBWriteString(0,PluginShort,optPassword,lfm_password);
DBWriteString(0,PluginShort,optLogin ,lfm_login);
DBWriteByte (0,PluginShort,optTries ,lfm_tries);
DBWriteByte (0,PluginShort,optScrobble,lfm_on and 1);
@@ -29,8 +24,6 @@ begin lfm_on :=DBReadByte(0,PluginShort,optScrobble,0);
mFreeMem(lfm_login ); lfm_login :=DBReadString(0,PluginShort,optLogin);
mFreeMem(lfm_password); lfm_password:=DBReadString(0,PluginShort,optPassword);
- if lfm_password<>nil then
- CallService(MS_DB_CRYPT_DECODESTRING,StrLen(lfm_password)+1,lparam(lfm_password));
if (lfm_login=nil) or (lfm_password=nil) then
CallService(MS_POPUP_SHOWMESSAGEW,
wparam(TranslateW('Don''t forget to enter Login and Password to use Last.fm service')),
diff --git a/plugins/Watrack/myshows/i_myshows_opt.inc b/plugins/Watrack/myshows/i_myshows_opt.inc index f3287aba05..f136c4c658 100644 --- a/plugins/Watrack/myshows/i_myshows_opt.inc +++ b/plugins/Watrack/myshows/i_myshows_opt.inc @@ -11,16 +11,10 @@ procedure SaveOpt; var
tmppass:array [0..255] of AnsiChar;
begin
- if msh_password<>nil then
- begin
- StrCopy(tmppass,msh_password);
- CallService(MS_DB_CRYPT_ENCODESTRING,StrLen(tmppass)+1,LPARAM(@tmppass));
- end;
- DBWriteString(0,PluginShort,optPassword,tmppass);
+ DBWriteString(0,PluginShort,optPassword,msh_password);
DBWriteString(0,PluginShort,optLogin ,msh_login);
DBWriteByte (0,PluginShort,optTries ,msh_tries);
DBWriteByte (0,PluginShort,optScrobPos,msh_scrobpos);
-// DBWriteWord (0,PluginShort,optTries ,msh_timeout);
DBWriteByte (0,PluginShort,optScrobble,msh_on and 1);
end;
@@ -32,8 +26,6 @@ begin msh_on :=DBReadByte(0,PluginShort,optScrobble,0);
mFreeMem(msh_login ); msh_login :=DBReadString(0,PluginShort,optLogin);
mFreeMem(msh_password); msh_password:=DBReadString(0,PluginShort,optPassword);
- if msh_password<>nil then
- CallService(MS_DB_CRYPT_DECODESTRING,StrLen(msh_password)+1,LPARAM(msh_password));
if (msh_login=nil) or (msh_password=nil) then
CallService(MS_POPUP_SHOWMESSAGEW,
WPARAM(TranslateW('Don''t forget to enter Login and Password to use MyShows service')),
|