summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_account.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-06-03 20:54:43 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-06-03 20:54:43 +0000
commit0ad4fffb15944d82febdcec80ef920cd400d8169 (patch)
treef663a50d2c7311cf9a2eaa52ffd2c3fde30d3f21 /protocols/Skype/src/skype_account.cpp
parent5e3b2449340245febd68b79c148a5ca3fd95336a (diff)
- use core base64 funcs
- few changes in group chat git-svn-id: http://svn.miranda-ng.org/main/trunk@4876 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_account.cpp')
-rw-r--r--protocols/Skype/src/skype_account.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/protocols/Skype/src/skype_account.cpp b/protocols/Skype/src/skype_account.cpp
index aa19ea233e..2f1379048f 100644
--- a/protocols/Skype/src/skype_account.cpp
+++ b/protocols/Skype/src/skype_account.cpp
@@ -1,5 +1,4 @@
#include "skype_proto.h"
-#include "base64/base64.h"
wchar_t *CSkypeProto::LogoutReasons[] =
{
@@ -181,11 +180,12 @@ void CSkypeProto::InitProxy()
this->SetStr(SETUPKEY_HTTPS_PROXY_ADDR, address);
if (nlus.useProxyAuth)
{
- char encodedPass[MAX_PATH];
- Base64::Encode(nlus.szProxyAuthPassword, encodedPass, MAX_PATH);
+ char *encodedPass = (char *)::CallService(MS_UTILS_ENCODEBASE64, 0, (LPARAM)nlus.szProxyAuthPassword);
this->SetStr(SETUPKEY_HTTPS_PROXY_USER, nlus.szProxyAuthUser);
this->SetStr(SETUPKEY_HTTPS_PROXY_PWD, encodedPass);
+
+ ::mir_free(encodedPass);
}
break;
@@ -197,8 +197,12 @@ void CSkypeProto::InitProxy()
this->SetStr(SETUPKEY_SOCKS_PROXY_ADDR, address);
if (nlus.useProxyAuth)
{
+ char *encodedPass = (char *)::CallService(MS_UTILS_ENCODEBASE64, 0, (LPARAM)nlus.szProxyAuthPassword);
+
this->SetStr(SETUPKEY_SOCKS_PROXY_USER, nlus.szProxyAuthUser);
this->SetStr(SETUPKEY_SOCKS_PROXY_PWD, nlus.szProxyAuthPassword);
+
+ ::mir_free(encodedPass);
}
break;