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