From 36eeccd9e9abe424ff9cf63687c330d6b5b321ae Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Nov 2013 21:28:44 +0000 Subject: fix for Jaberr's password uncrunching in GTalkExt git-svn-id: http://svn.miranda-ng.org/main/trunk@6985 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/GTalkExt/src/inbox.cpp | 14 +++----------- 1 file 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; -- cgit v1.2.3