summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-11-25 21:28:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-11-25 21:28:44 +0000
commit36eeccd9e9abe424ff9cf63687c330d6b5b321ae (patch)
tree1a6d7f39d472bbe94d785d7b6b4d42d1e3a71bc4
parent9c2afa293172937de3f2cc4d423c4924c4b83e14 (diff)
fix for Jaberr's password uncrunching in GTalkExt
git-svn-id: http://svn.miranda-ng.org/main/trunk@6985 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/GTalkExt/src/inbox.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/protocols/GTalkExt/src/inbox.cpp b/protocols/GTalkExt/src/inbox.cpp
index 435c73c9da..1cb4a3aa88 100644
--- a/protocols/GTalkExt/src/inbox.cpp
+++ b/protocols/GTalkExt/src/inbox.cpp
@@ -42,7 +42,7 @@ const NETLIBHTTPHEADER HEADER_URL_ENCODED = {"Content-Type", "application/x-www-
#define SID_KEY_NAME "SID="
#define LSID_KEY_NAME "LSID="
-#define LOGIN_PASS_SETTING_NAME "LoginPassword"
+#define LOGIN_PASS_SETTING_NAME "Password"
#define INBOX_URL_FORMAT _T("https://mail.google.com/%s%s/#inbox")
@@ -155,14 +155,6 @@ void OpenUrlThread(void *param)
free(data);
}
-void __forceinline DecryptString(LPSTR str, int len)
-{
- for (--len; len >= 0; len--) {
- const char c = str[len] ^ 0xc3;
- if (c) str[len] = c;
- }
-}
-
int GetMailboxPwd(LPCSTR acc, LPCTSTR mailbox, LPSTR *pwd, int buffSize)
{
char buff[256];
@@ -181,9 +173,9 @@ int GetMailboxPwd(LPCSTR acc, LPCTSTR mailbox, LPSTR *pwd, int buffSize)
int result = dbv.cchVal;
if (pwd) {
- if (buffSize < result + 1) result = buffSize - 1;
+ if (buffSize < result + 1)
+ result = buffSize - 1;
memcpy(*pwd, &buff, result + 1);
- DecryptString(*pwd, result);
}
return result;