libpurple/protocols/msn/nexus.h

Mon, 13 Jul 2009 05:01:42 +0000

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Mon, 13 Jul 2009 05:01:42 +0000
changeset 27776
60d79d68cde1
parent 25596
a0155035f7f0
child 29305
202cb72ed5b0
permissions
-rw-r--r--

On MSN, pop up an "invite message" request similar to oscar, and send that
in the add request. We really should try and move this into the add buddy
dialog instead of an extra prompt.

Fixes #8503.

9198
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
1 /**
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
2 * @file nexus.h MSN Nexus functions
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
3 *
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
4 * purple
9198
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
5 *
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
6 * Purple is the legal property of its developers, whose names are too numerous
9198
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
7 * to list here. Please refer to the COPYRIGHT file distributed with this
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
8 * source distribution.
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
9 *
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
10 * This program is free software; you can redistribute it and/or modify
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
11 * it under the terms of the GNU General Public License as published by
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
12 * the Free Software Foundation; either version 2 of the License, or
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
13 * (at your option) any later version.
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
14 *
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
15 * This program is distributed in the hope that it will be useful,
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
18 * GNU General Public License for more details.
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
19 *
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
20 * You should have received a copy of the GNU General Public License
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
21 * along with this program; if not, write to the Free Software
19859
71d37b57eff2 The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 15884
diff changeset
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
9198
e8eb6d5eb9eb [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 9193
diff changeset
23 */
8171
c3c43a25caec [gaim-migrate @ 8884]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
diff changeset
24 #ifndef _MSN_NEXUS_H_
c3c43a25caec [gaim-migrate @ 8884]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
diff changeset
25 #define _MSN_NEXUS_H_
c3c43a25caec [gaim-migrate @ 8884]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
diff changeset
26
23756
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
27 /* Index into ticket_tokens in nexus.c Keep updated! */
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
28 typedef enum
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
29 {
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
30 MSN_AUTH_MESSENGER = 0,
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
31 MSN_AUTH_MESSENGER_WEB = 1,
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
32 MSN_AUTH_CONTACTS = 2,
23759
1abf46eeccec fix sending offline message in p15 by sending the correct token. In msnp14,
Ka-Hing Cheung <khc@pidgin.im>
parents: 23756
diff changeset
33 MSN_AUTH_LIVE_SECURE = 3,
23756
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
34 MSN_AUTH_SPACES = 4,
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
35 MSN_AUTH_LIVE_CONTACTS = 5,
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
36 MSN_AUTH_STORAGE = 6
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
37 } MsnAuthDomains;
13853
cccd9dd599eb [gaim-migrate @ 16329]
Ma Yuan <mayuan2006@gmail.com>
parents: 13201
diff changeset
38
23756
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
39 #define MSN_SSO_SERVER "login.live.com"
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
40 #define SSO_POST_URL "/RST.srf"
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
41
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
42 #define MSN_SSO_RST_TEMPLATE \
23788
b5ab3fd1c440 Finally got MSN token updating working (I think).
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23780
diff changeset
43 "<wst:RequestSecurityToken xmlns=\"http://schemas.xmlsoap.org/ws/2004/04/trust\" Id=\"RST%d\">"\
23756
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
44 "<wst:RequestType>http://schemas.xmlsoap.org/ws/2004/04/security/trust/Issue</wst:RequestType>"\
23788
b5ab3fd1c440 Finally got MSN token updating working (I think).
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23780
diff changeset
45 "<wsp:AppliesTo xmlns=\"http://schemas.xmlsoap.org/ws/2002/12/policy\">"\
b5ab3fd1c440 Finally got MSN token updating working (I think).
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23780
diff changeset
46 "<wsa:EndpointReference xmlns=\"http://schemas.xmlsoap.org/ws/2004/03/addressing\">"\
23756
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
47 "<wsa:Address>%s</wsa:Address>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
48 "</wsa:EndpointReference>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
49 "</wsp:AppliesTo>"\
23788
b5ab3fd1c440 Finally got MSN token updating working (I think).
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23780
diff changeset
50 "<wsse:PolicyReference xmlns=\"http://schemas.xmlsoap.org/ws/2003/06/secext\" URI=\"%s\"></wsse:PolicyReference>"\
23756
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
51 "</wst:RequestSecurityToken>"
13853
cccd9dd599eb [gaim-migrate @ 16329]
Ma Yuan <mayuan2006@gmail.com>
parents: 13201
diff changeset
52
23756
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
53 #define MSN_SSO_TEMPLATE "<?xml version='1.0' encoding='utf-8'?>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
54 "<Envelope xmlns=\"http://schemas.xmlsoap.org/soap/envelope/\""\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
55 " xmlns:wsse=\"http://schemas.xmlsoap.org/ws/2003/06/secext\""\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
56 " xmlns:saml=\"urn:oasis:names:tc:SAML:1.0:assertion\""\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
57 " xmlns:wsp=\"http://schemas.xmlsoap.org/ws/2002/12/policy\""\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
58 " xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\""\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
59 " xmlns:wsa=\"http://schemas.xmlsoap.org/ws/2004/03/addressing\""\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
60 " xmlns:wssc=\"http://schemas.xmlsoap.org/ws/2004/04/sc\""\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
61 " xmlns:wst=\"http://schemas.xmlsoap.org/ws/2004/04/trust\">"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
62 "<Header>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
63 "<ps:AuthInfo"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
64 " xmlns:ps=\"http://schemas.microsoft.com/Passport/SoapServices/PPCRL\""\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
65 " Id=\"PPAuthInfo\">"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
66 "<ps:HostingApp>{7108E71A-9926-4FCB-BCC9-9A9D3F32E423}</ps:HostingApp>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
67 "<ps:BinaryVersion>4</ps:BinaryVersion>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
68 "<ps:UIVersion>1</ps:UIVersion>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
69 "<ps:Cookies></ps:Cookies>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
70 "<ps:RequestParams>AQAAAAIAAABsYwQAAAAxMDMz</ps:RequestParams>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
71 "</ps:AuthInfo>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
72 "<wsse:Security>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
73 "<wsse:UsernameToken Id=\"user\">"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
74 "<wsse:Username>%s</wsse:Username>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
75 "<wsse:Password>%s</wsse:Password>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
76 "</wsse:UsernameToken>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
77 "</wsse:Security>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
78 "</Header>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
79 "<Body>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
80 "<ps:RequestMultipleSecurityTokens"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
81 " xmlns:ps=\"http://schemas.microsoft.com/Passport/SoapServices/PPCRL\""\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
82 " Id=\"RSTS\">"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
83 "<wst:RequestSecurityToken Id=\"RST0\">"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
84 "<wst:RequestType>http://schemas.xmlsoap.org/ws/2004/04/security/trust/Issue</wst:RequestType>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
85 "<wsp:AppliesTo>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
86 "<wsa:EndpointReference>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
87 "<wsa:Address>http://Passport.NET/tb</wsa:Address>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
88 "</wsa:EndpointReference>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
89 "</wsp:AppliesTo>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
90 "</wst:RequestSecurityToken>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
91 "%s" /* Other RSTn tokens */\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
92 "</ps:RequestMultipleSecurityTokens>"\
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
93 "</Body>"\
13907
4c5b6cbab166 [gaim-migrate @ 17192]
Ma Yuan <mayuan2006@gmail.com>
parents: 13878
diff changeset
94 "</Envelope>"
4c5b6cbab166 [gaim-migrate @ 17192]
Ma Yuan <mayuan2006@gmail.com>
parents: 13878
diff changeset
95
23780
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
96 #define MSN_SSO_AUTHINFO_TEMPLATE \
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
97 "<ps:AuthInfo xmlns:ps=\"http://schemas.microsoft.com/Passport/SoapServices/PPCRL\" Id=\"PPAuthInfo\">"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
98 "<ps:HostingApp>{7108E71A-9926-4FCB-BCC9-9A9D3F32E423}</ps:HostingApp>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
99 "<ps:BinaryVersion>4</ps:BinaryVersion>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
100 "<ps:UIVersion>1</ps:UIVersion>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
101 "<ps:Cookies></ps:Cookies>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
102 "<ps:RequestParams>AQAAAAIAAABsYwQAAAA0MTA1</ps:RequestParams>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
103 "</ps:AuthInfo>"
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
104 /* Not sure what's editable here, so I'll just hard-code the SHA1 hash */
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
105 #define MSN_SSO_AUTHINFO_SHA1_BASE64 "d2IeTF4DAkPEa/tVETHznsivEpc="
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
106
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
107 #define MSN_SSO_TIMESTAMP_TEMPLATE \
23788
b5ab3fd1c440 Finally got MSN token updating working (I think).
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23780
diff changeset
108 "<wsu:Timestamp xmlns=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\" Id=\"Timestamp\">"\
23780
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
109 "<wsu:Created>%s</wsu:Created>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
110 "<wsu:Expires>%s</wsu:Expires>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
111 "</wsu:Timestamp>"
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
112
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
113 #define MSN_SSO_SIGNEDINFO_TEMPLATE \
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
114 "<SignedInfo xmlns=\"http://www.w3.org/2000/09/xmldsig#\">"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
115 "<CanonicalizationMethod Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\"></CanonicalizationMethod>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
116 "<SignatureMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#hmac-sha1\"></SignatureMethod>"\
23788
b5ab3fd1c440 Finally got MSN token updating working (I think).
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23780
diff changeset
117 "<Reference URI=\"#RST%d\">"\
23780
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
118 "<Transforms>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
119 "<Transform Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\"></Transform>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
120 "</Transforms>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
121 "<DigestMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#sha1\"></DigestMethod>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
122 "<DigestValue>%s</DigestValue>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
123 "</Reference>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
124 "<Reference URI=\"#Timestamp\">"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
125 "<Transforms>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
126 "<Transform Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\"></Transform>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
127 "</Transforms>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
128 "<DigestMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#sha1\"></DigestMethod>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
129 "<DigestValue>%s</DigestValue>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
130 "</Reference>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
131 "<Reference URI=\"#PPAuthInfo\">"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
132 "<Transforms>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
133 "<Transform Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\"></Transform>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
134 "</Transforms>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
135 "<DigestMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#sha1\"></DigestMethod>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
136 "<DigestValue>" MSN_SSO_AUTHINFO_SHA1_BASE64 "</DigestValue>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
137 "</Reference>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
138 "</SignedInfo>"
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
139
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
140 #define MSN_SSO_TOKEN_UPDATE_TEMPLATE "<?xml version=\"1.0\" encoding=\"utf-8\"?>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
141 "<Envelope"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
142 " xmlns=\"http://schemas.xmlsoap.org/soap/envelope/\""\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
143 " xmlns:wsse=\"http://schemas.xmlsoap.org/ws/2003/06/secext\""\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
144 " xmlns:saml=\"urn:oasis:names:tc:SAML:1.0:assertion\""\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
145 " xmlns:wsp=\"http://schemas.xmlsoap.org/ws/2002/12/policy\""\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
146 " xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\""\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
147 " xmlns:wsa=\"http://schemas.xmlsoap.org/ws/2004/03/addressing\""\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
148 " xmlns:wssc=\"http://schemas.xmlsoap.org/ws/2004/04/sc\""\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
149 " xmlns:wst=\"http://schemas.xmlsoap.org/ws/2004/04/trust\">"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
150 "<Header>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
151 MSN_SSO_AUTHINFO_TEMPLATE /* ps:AuthInfo */ \
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
152 "<wsse:Security>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
153 "<EncryptedData xmlns=\"http://www.w3.org/2001/04/xmlenc#\" Id=\"BinaryDAToken0\" Type=\"http://www.w3.org/2001/04/xmlenc#Element\">"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
154 "<EncryptionMethod Algorithm=\"http://www.w3.org/2001/04/xmlenc#tripledes-cbc\"></EncryptionMethod>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
155 "<ds:KeyInfo xmlns:ds=\"http://www.w3.org/2000/09/xmldsig#\">"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
156 "<ds:KeyName>http://Passport.NET/STS</ds:KeyName>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
157 "</ds:KeyInfo>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
158 "<CipherData>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
159 "<CipherValue>%s</CipherValue>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
160 "</CipherData>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
161 "</EncryptedData>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
162 "<wssc:DerivedKeyToken Id=\"SignKey\">"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
163 "<wsse:RequestedTokenReference>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
164 "<wsse:KeyIdentifier ValueType=\"http://docs.oasis-open.org/wss/2004/XX/oasis-2004XX-wss-saml-token-profile-1.0#SAMLAssertionID\" />"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
165 "<wsse:Reference URI=\"#BinaryDAToken0\" />"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
166 "</wsse:RequestedTokenReference>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
167 "<wssc:Nonce>%s</wssc:Nonce>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
168 "</wssc:DerivedKeyToken>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
169 "%s" /* wsu:Timestamp */\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
170 "<Signature xmlns=\"http://www.w3.org/2000/09/xmldsig#\">"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
171 "%s" /* SignedInfo */\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
172 "<SignatureValue>%s</SignatureValue>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
173 "<KeyInfo>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
174 "<wsse:SecurityTokenReference>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
175 "<wsse:Reference URI=\"#SignKey\" />"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
176 "</wsse:SecurityTokenReference>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
177 "</KeyInfo>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
178 "</Signature>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
179 "</wsse:Security>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
180 "</Header>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
181 "<Body>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
182 "%s" /* wst:RequestSecurityToken */ \
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
183 "</Body>"\
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
184 "</Envelope>"
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
185
23756
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
186 typedef struct _MsnUsrKey MsnUsrKey;
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
187 struct _MsnUsrKey
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
188 {
23833
1a4c1d44858d Take care of more cleanup in the MSN code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23819
diff changeset
189 int size; /* 28. Does not count data */
1a4c1d44858d Take care of more cleanup in the MSN code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23819
diff changeset
190 int crypt_mode; /* CRYPT_MODE_CBC (1) */
1a4c1d44858d Take care of more cleanup in the MSN code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23819
diff changeset
191 int cipher_type; /* TripleDES (0x6603) */
1a4c1d44858d Take care of more cleanup in the MSN code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23819
diff changeset
192 int hash_type; /* SHA1 (0x8004) */
1a4c1d44858d Take care of more cleanup in the MSN code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23819
diff changeset
193 int iv_len; /* 8 */
1a4c1d44858d Take care of more cleanup in the MSN code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23819
diff changeset
194 int hash_len; /* 20 */
1a4c1d44858d Take care of more cleanup in the MSN code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23819
diff changeset
195 int cipher_len; /* 72 */
1a4c1d44858d Take care of more cleanup in the MSN code.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23819
diff changeset
196 /* Data */
23756
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
197 char iv[8];
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
198 char hash[20];
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
199 char cipher[72];
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
200 };
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
201
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
202 typedef struct _MsnTicketToken MsnTicketToken;
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
203 struct _MsnTicketToken {
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
204 GHashTable *token;
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
205 char *secret;
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
206 time_t expiry;
25596
a0155035f7f0 I was hoping this wouldn't be necessary, but it seems that the possibility
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23833
diff changeset
207 GSList *updates;
23756
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
208 };
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
209
8171
c3c43a25caec [gaim-migrate @ 8884]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
diff changeset
210 typedef struct _MsnNexus MsnNexus;
c3c43a25caec [gaim-migrate @ 8884]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
diff changeset
211
c3c43a25caec [gaim-migrate @ 8884]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
diff changeset
212 struct _MsnNexus
c3c43a25caec [gaim-migrate @ 8884]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
diff changeset
213 {
c3c43a25caec [gaim-migrate @ 8884]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
diff changeset
214 MsnSession *session;
23780
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
215
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
216 /* From server via USR command */
23756
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
217 char *policy;
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
218 char *nonce;
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
219
23780
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
220 /* From server via SOAP stuff */
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
221 char *cipher;
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
222 char *secret;
23756
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
223 MsnTicketToken *tokens;
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
224 int token_len;
8171
c3c43a25caec [gaim-migrate @ 8884]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
diff changeset
225 };
c3c43a25caec [gaim-migrate @ 8884]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
diff changeset
226
c3c43a25caec [gaim-migrate @ 8884]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
diff changeset
227 void msn_nexus_connect(MsnNexus *nexus);
c3c43a25caec [gaim-migrate @ 8884]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
diff changeset
228 MsnNexus *msn_nexus_new(MsnSession *session);
c3c43a25caec [gaim-migrate @ 8884]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
diff changeset
229 void msn_nexus_destroy(MsnNexus *nexus);
23780
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
230 GHashTable *msn_nexus_get_token(MsnNexus *nexus, MsnAuthDomains id);
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
231 const char *msn_nexus_get_token_str(MsnNexus *nexus, MsnAuthDomains id);
fda6e23ac6f6 Update MSN nexus functions so that tokens are properly updateable. It
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 23759
diff changeset
232 void msn_nexus_update_token(MsnNexus *nexus, int id, GSourceFunc cb, gpointer data);
8386
5b9e02f4c03d [gaim-migrate @ 9114]
Mark Doliner <markdoliner@pidgin.im>
parents: 8171
diff changeset
233 #endif /* _MSN_NEXUS_H_ */
23756
1569608cab71 Patch 2 from Qulogic, this one adds SSO authentication
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 21359
diff changeset
234

mercurial