From 41fa778883c3bbb5c14470b66c35304f894012c6 Mon Sep 17 00:00:00 2001 From: Alexander Gluzsky Date: Wed, 30 Mar 2016 05:54:58 +0000 Subject: aim: force disabled ssl as it does not work anymore TODO: implement "clientlogin" api for icq/aim it's requires at least key of registrtrd developer on aol it's using https login procediure with redirect to actual aim/icq server after successfule login procedure git-svn-id: http://svn.miranda-ng.org/main/trunk@16563 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/AimOscar/src/utility.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) mode change 100644 => 100755 protocols/AimOscar/src/utility.cpp (limited to 'protocols/AimOscar/src/utility.cpp') diff --git a/protocols/AimOscar/src/utility.cpp b/protocols/AimOscar/src/utility.cpp old mode 100644 new mode 100755 index 0c785deb79..06849fb8b9 --- a/protocols/AimOscar/src/utility.cpp +++ b/protocols/AimOscar/src/utility.cpp @@ -99,10 +99,12 @@ void CAimProto::start_connection(void*) return; } - bool use_ssl = !getByte(AIM_KEY_DSSL, 0); + //bool use_ssl = !getByte(AIM_KEY_DSSL, 0); + bool use_ssl = false; char* login_url = getStringA(AIM_KEY_HN); - if (login_url == NULL) login_url = mir_strdup(use_ssl ? AIM_DEFAULT_SERVER : AIM_DEFAULT_SERVER_NS); + //if (login_url == NULL) login_url = mir_strdup(use_ssl ? AIM_DEFAULT_SERVER : AIM_DEFAULT_SERVER_NS); + if (login_url == NULL) login_url = mir_strdup(AIM_DEFAULT_SERVER); m_hServerConn = aim_connect(login_url, get_default_port(), use_ssl, login_url); @@ -145,7 +147,8 @@ bool CAimProto::wait_conn(HANDLE& hConn, HANDLE& hEvent, unsigned short service) unsigned short CAimProto::get_default_port(void) { - return getWord(AIM_KEY_PN, getByte(AIM_KEY_DSSL, 0) ? AIM_DEFAULT_PORT : AIM_DEFAULT_SSL_PORT); + //return getWord(AIM_KEY_PN, getByte(AIM_KEY_DSSL, 0) ? AIM_DEFAULT_PORT : AIM_DEFAULT_SSL_PORT); + return AIM_DEFAULT_PORT; } bool CAimProto::is_my_contact(MCONTACT hContact) -- cgit v1.2.3