From 7ec2ce8fd7d30a536823ef9e08a3dad80ce76d4e Mon Sep 17 00:00:00 2001 From: dequis Date: Wed, 10 Jan 2018 00:05:23 -0300 Subject: Remove MSN. Use the skypeweb purple plugin instead. RIP As per http://ismsndeadyet.com/ all versions up to MSNP22 died a few months ago. We had a MSNP21 implementation, bought us two extra years. Implementing MSNP24 is technically possible but also pointless given skypeweb, and the authentication requires some fairly messed up crypto and legacy old-skype-protocol servers. For a long time I tried to reverse a potentially simpler method, and got fairly close, but never completed that. I haven't done any attempts to continue it in the last year, so I'm fine with giving up at this point. --- protocols/msn/soap.h | 341 --------------------------------------------------- 1 file changed, 341 deletions(-) delete mode 100644 protocols/msn/soap.h (limited to 'protocols/msn/soap.h') diff --git a/protocols/msn/soap.h b/protocols/msn/soap.h deleted file mode 100644 index 27cfa0cb..00000000 --- a/protocols/msn/soap.h +++ /dev/null @@ -1,341 +0,0 @@ -/********************************************************************\ - * BitlBee -- An IRC to other IM-networks gateway * - * * - * Copyright 2002-2012 Wilmer van der Gaast and others * - \********************************************************************/ - -/* MSN module - All the SOAPy XML stuff. - Some manager at Microsoft apparently thought MSNP wasn't XMLy enough so - someone stepped up and changed that. This is the result. Kilobytes and - more kilobytes of XML vomit to transfer tiny bits of informaiton. */ - -/* - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License with - the Debian GNU/Linux distribution in /usr/share/common-licenses/GPL; - if not, write to the Free Software Foundation, Inc., 51 Franklin St., - Fifth Floor, Boston, MA 02110-1301 USA -*/ - -/* Thanks to http://msnpiki.msnfanatic.com/ for lots of info on this! */ - -#ifndef __SOAP_H__ -#define __SOAP_H__ - -#include -#include -#include -#include -#include -#include -#include -#include -#include "nogaim.h" - - -int msn_soapq_flush(struct im_connection *ic, gboolean resend); - - -#define SOAP_HTTP_REQUEST \ - "POST %s HTTP/1.0\r\n" \ - "Host: %s\r\n" \ - "Accept: */*\r\n" \ - "User-Agent: BitlBee " BITLBEE_VERSION "\r\n" \ - "Content-Type: text/xml; charset=utf-8\r\n" \ - "%s" \ - "Content-Length: %zd\r\n" \ - "Cache-Control: no-cache\r\n" \ - "\r\n" \ - "%s" - - -#define SOAP_PASSPORT_SSO_URL "https://login.live.com/RST.srf" -#define SOAP_PASSPORT_SSO_URL_MSN "https://msnia.login.live.com/pp900/RST.srf" - -#define SOAP_PASSPORT_SSO_PAYLOAD \ - "" \ - "
" \ - "" \ - "{7108E71A-9926-4FCB-BCC9-9A9D3F32E423}" \ - "4" \ - "1" \ - "" \ - "AQAAAAIAAABsYwQAAAAxMDMz" \ - "" \ - "" \ - "" \ - "%s" \ - "%s" \ - "" \ - "" \ - "
" \ - "" \ - "" \ - "" \ - "http://schemas.xmlsoap.org/ws/2004/04/security/trust/Issue" \ - "" \ - "" \ - "http://Passport.NET/tb" \ - "" \ - "" \ - "" \ - "" \ - "http://schemas.xmlsoap.org/ws/2004/04/security/trust/Issue" \ - "" \ - "" \ - "messengerclear.live.com" \ - "" \ - "" \ - "" \ - "" \ - "" \ - "http://schemas.xmlsoap.org/ws/2004/04/security/trust/Issue" \ - "" \ - "" \ - "contacts.msn.com" \ - "" \ - "" \ - "" \ - "" \ - "" \ - "http://schemas.xmlsoap.org/ws/2004/04/security/trust/Issue" \ - "" \ - "" \ - "messengersecure.live.com" \ - "" \ - "" \ - "" \ - "" \ - "" \ - "http://schemas.xmlsoap.org/ws/2004/04/security/trust/Issue" \ - "" \ - "" \ - "storage.msn.com" \ - "" \ - "" \ - "" \ - "" \ - "" \ - "" \ - "
" - -int msn_soap_passport_sso_request(struct im_connection *ic, const char *nonce); - - -#define SOAP_ABSERVICE_PAYLOAD \ - "" \ - "" \ - "" \ - "" \ - "F6D2794D-501F-443A-ADBE-8F1490FF30FD" \ - "false" \ - "%s" \ - "" \ - "" \ - "false" \ - "%s" \ - "" \ - "" \ - "" \ - "%%s" \ - "" \ - "" - -#define SOAP_MEMLIST_URL "http://contacts.msn.com/abservice/SharingService.asmx" -#define SOAP_MEMLIST_ACTION "http://www.msn.com/webservices/AddressBook/FindMembership" - -#define SOAP_MEMLIST_PAYLOAD \ - "MessengerIMAvailabilitytrue" \ - "" - -#define SOAP_MEMLIST_ADD_ACTION "http://www.msn.com/webservices/AddressBook/AddMember" -#define SOAP_MEMLIST_DEL_ACTION "http://www.msn.com/webservices/AddressBook/DeleteMember" - -#define SOAP_MEMLIST_EDIT_PAYLOAD \ - "<%sMember xmlns=\"http://www.msn.com/webservices/AddressBook\">" \ - "" \ - "0" \ - "Messenger" \ - "" \ - "" \ - "" \ - "" \ - "%s" \ - "" \ - "" \ - "Passport" \ - "Accepted" \ - "%s" \ - "" \ - "" \ - "" \ - "" \ - "" - -int msn_soap_memlist_request(struct im_connection *ic); -int msn_soap_memlist_edit(struct im_connection *ic, const char *handle, gboolean add, int list); - - -#define SOAP_ADDRESSBOOK_URL "http://contacts.msn.com/abservice/abservice.asmx" -#define SOAP_ADDRESSBOOK_ACTION "http://www.msn.com/webservices/AddressBook/ABFindAll" - -#define SOAP_ADDRESSBOOK_PAYLOAD \ - "" \ - "00000000-0000-0000-0000-000000000000" \ - "Full" \ - "false" \ - "0001-01-01T00:00:00.0000000-08:00" \ - "" - -#define SOAP_AB_NAMECHANGE_ACTION "http://www.msn.com/webservices/AddressBook/ABContactUpdate" - -#define SOAP_AB_NAMECHANGE_PAYLOAD \ - "" \ - "00000000-0000-0000-0000-000000000000" \ - "" \ - "" \ - "" \ - "Me" \ - "%s" \ - "" \ - "DisplayName" \ - "" \ - "" \ - "" - -#define SOAP_AB_CONTACT_ADD_ACTION "http://www.msn.com/webservices/AddressBook/ABContactAdd" - -#define SOAP_AB_CONTACT_ADD_PAYLOAD \ - "" \ - "00000000-0000-0000-0000-000000000000" \ - "" \ - "" \ - "" \ - "LivePending" \ - "%s" \ - "true" \ - "" \ - "%s" \ - "" \ - "" \ - "" \ - "" \ - "" \ - "true" \ - "" \ - "" - -#define SOAP_AB_CONTACT_DEL_ACTION "http://www.msn.com/webservices/AddressBook/ABContactDelete" - -#define SOAP_AB_CONTACT_DEL_PAYLOAD \ - "" \ - "00000000-0000-0000-0000-000000000000" \ - "" \ - "" \ - "%s" \ - "" \ - "" \ - "" - -int msn_soap_addressbook_request(struct im_connection *ic); -int msn_soap_addressbook_set_display_name(struct im_connection *ic, const char *new); -int msn_soap_ab_contact_add(struct im_connection *ic, bee_user_t *bu); -int msn_soap_ab_contact_del(struct im_connection *ic, bee_user_t *bu); - - -#define SOAP_STORAGE_URL "https://storage.msn.com/storageservice/SchematizedStore.asmx" -#define SOAP_PROFILE_GET_ACTION "http://www.msn.com/webservices/storage/w10/GetProfile" -#define SOAP_PROFILE_SET_DN_ACTION "http://www.msn.com/webservices/storage/w10/UpdateProfile" - -#define SOAP_PROFILE_GET_PAYLOAD \ - "" \ - "" \ - "" \ - "" \ - "Messenger Client 9.0" \ - "Initial" \ - "" \ - "" \ - "0" \ - "%s" \ - "" \ - "" \ - "" \ - "" \ - "" \ - "" \ - "%s" \ - "MyCidStuff" \ - "" \ - "MyProfile" \ - "" \ - "" \ - "true" \ - "true" \ - "" \ - "true" \ - "true" \ - "true" \ - "true" \ - "true" \ - "true" \ - "true" \ - "true" \ - "true" \ - "" \ - "" \ - "" \ - "" \ - "" - -#define SOAP_PROFILE_SET_DN_PAYLOAD \ - "" \ - "" \ - "" \ - "" \ - "Messenger Client 9.0" \ - "Initial" \ - "" \ - "" \ - "0" \ - "%s" \ - "" \ - "" \ - "" \ - "" \ - "" \ - "%s" \ - "" \ - "Update" \ - "%s" \ - "0" \ - "" \ - "" \ - "" \ - "" \ - "" - -int msn_soap_profile_get(struct im_connection *ic, const char *cid); -int msn_soap_profile_set_dn(struct im_connection *ic, const char *dn); - -#endif /* __SOAP_H__ */ -- cgit v1.2.3