From a2184eb00d2b02d48ec14e72615736281b9d5f81 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 23 Apr 2013 19:47:32 +0000 Subject: - changed project file structure - skype runtime initialization moved to plugin load func - fixed password encription - disabled message sync git-svn-id: http://svn.miranda-ng.org/main/trunk@4518 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_netlib.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'protocols/Skype/src/skype_netlib.cpp') diff --git a/protocols/Skype/src/skype_netlib.cpp b/protocols/Skype/src/skype_netlib.cpp index 7401e8c84e..e0782e4a9f 100644 --- a/protocols/Skype/src/skype_netlib.cpp +++ b/protocols/Skype/src/skype_netlib.cpp @@ -38,40 +38,40 @@ void CSkypeProto::InitProxy() { case PROXYTYPE_HTTP: case PROXYTYPE_HTTPS: - this->skype->SetInt(SETUPKEY_HTTPS_PROXY_ENABLE, 1); - this->skype->SetInt(SETUPKEY_SOCKS_PROXY_ENABLE, 0); - this->skype->SetStr(SETUPKEY_HTTPS_PROXY_ADDR, address); + g_skype->SetInt(SETUPKEY_HTTPS_PROXY_ENABLE, 1); + g_skype->SetInt(SETUPKEY_SOCKS_PROXY_ENABLE, 0); + g_skype->SetStr(SETUPKEY_HTTPS_PROXY_ADDR, address); if (nlus.useProxyAuth) { char encodedPass[MAX_PATH]; Base64::Encode(nlus.szProxyAuthPassword, encodedPass, MAX_PATH); - this->skype->SetStr(SETUPKEY_HTTPS_PROXY_USER, nlus.szProxyAuthUser); - this->skype->SetStr(SETUPKEY_HTTPS_PROXY_PWD, encodedPass); + g_skype->SetStr(SETUPKEY_HTTPS_PROXY_USER, nlus.szProxyAuthUser); + g_skype->SetStr(SETUPKEY_HTTPS_PROXY_PWD, encodedPass); } break; case PROXYTYPE_SOCKS4: case PROXYTYPE_SOCKS5: - this->skype->SetInt(SETUPKEY_HTTPS_PROXY_ENABLE, 0); - this->skype->SetInt(SETUPKEY_SOCKS_PROXY_ENABLE, 1); - this->skype->SetStr(SETUPKEY_SOCKS_PROXY_ADDR, address); + g_skype->SetInt(SETUPKEY_HTTPS_PROXY_ENABLE, 0); + g_skype->SetInt(SETUPKEY_SOCKS_PROXY_ENABLE, 1); + g_skype->SetStr(SETUPKEY_SOCKS_PROXY_ADDR, address); if (nlus.useProxyAuth) { - this->skype->SetStr(SETUPKEY_SOCKS_PROXY_USER, nlus.szProxyAuthUser); - this->skype->SetStr(SETUPKEY_SOCKS_PROXY_PWD, nlus.szProxyAuthPassword); + g_skype->SetStr(SETUPKEY_SOCKS_PROXY_USER, nlus.szProxyAuthUser); + g_skype->SetStr(SETUPKEY_SOCKS_PROXY_PWD, nlus.szProxyAuthPassword); } break; default: - this->skype->Delete(SETUPKEY_HTTPS_PROXY_ENABLE); - this->skype->Delete(SETUPKEY_HTTPS_PROXY_ADDR); - this->skype->Delete(SETUPKEY_HTTPS_PROXY_USER); - this->skype->Delete(SETUPKEY_HTTPS_PROXY_PWD); - this->skype->Delete(SETUPKEY_SOCKS_PROXY_ENABLE); - this->skype->Delete(SETUPKEY_SOCKS_PROXY_ADDR); - this->skype->Delete(SETUPKEY_SOCKS_PROXY_USER); - this->skype->Delete(SETUPKEY_SOCKS_PROXY_PWD); + g_skype->Delete(SETUPKEY_HTTPS_PROXY_ENABLE); + g_skype->Delete(SETUPKEY_HTTPS_PROXY_ADDR); + g_skype->Delete(SETUPKEY_HTTPS_PROXY_USER); + g_skype->Delete(SETUPKEY_HTTPS_PROXY_PWD); + g_skype->Delete(SETUPKEY_SOCKS_PROXY_ENABLE); + g_skype->Delete(SETUPKEY_SOCKS_PROXY_ADDR); + g_skype->Delete(SETUPKEY_SOCKS_PROXY_USER); + g_skype->Delete(SETUPKEY_SOCKS_PROXY_PWD); break; } } -- cgit v1.2.3