libpurple/protocols/yahoo/yahoo_auth.h

Wed, 13 May 2009 20:37:46 +0000

author
Marcus Lundblad <malu@pidgin.im>
date
Wed, 13 May 2009 20:37:46 +0000
branch
cpw.malu.client_type
changeset 27287
d3ececcf09d1
parent 24295
df840f218c78
permissions
-rw-r--r--

propagate from branch 'im.pidgin.pidgin' (head 05ca719b901b1d28ae6ec27aa289ea1fd9a2539a)
to branch 'im.pidgin.cpw.malu.client_type' (head f637c4c27815f9f3a790583ca3f64b53b59e2256)

8350
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
1 /*
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
2 * yahoo_auth.h: Header for Yahoo Messenger authentication schemes. Eew.
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
3 *
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
4 * Copyright(c) 2003 Cerulean Studios
24295
df840f218c78 Add GPL headers to the yahoo_auth files based on Sean's recollection of communication with the authors.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
5 *
df840f218c78 Add GPL headers to the yahoo_auth files based on Sean's recollection of communication with the authors.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
6 * This program is free software; you can redistribute it and/or modify
df840f218c78 Add GPL headers to the yahoo_auth files based on Sean's recollection of communication with the authors.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
7 * it under the terms of the GNU General Public License as published by
df840f218c78 Add GPL headers to the yahoo_auth files based on Sean's recollection of communication with the authors.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
8 * the Free Software Foundation; either version 2 of the License, or
df840f218c78 Add GPL headers to the yahoo_auth files based on Sean's recollection of communication with the authors.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
9 * (at your option) any later version.
df840f218c78 Add GPL headers to the yahoo_auth files based on Sean's recollection of communication with the authors.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
10 *
df840f218c78 Add GPL headers to the yahoo_auth files based on Sean's recollection of communication with the authors.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
11 * This program is distributed in the hope that it will be useful,
df840f218c78 Add GPL headers to the yahoo_auth files based on Sean's recollection of communication with the authors.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
df840f218c78 Add GPL headers to the yahoo_auth files based on Sean's recollection of communication with the authors.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
df840f218c78 Add GPL headers to the yahoo_auth files based on Sean's recollection of communication with the authors.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
14 * GNU General Public License for more details.
df840f218c78 Add GPL headers to the yahoo_auth files based on Sean's recollection of communication with the authors.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
15 *
df840f218c78 Add GPL headers to the yahoo_auth files based on Sean's recollection of communication with the authors.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
16 * You should have received a copy of the GNU General Public License
df840f218c78 Add GPL headers to the yahoo_auth files based on Sean's recollection of communication with the authors.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
17 * along with this program; if not, write to the Free Software
df840f218c78 Add GPL headers to the yahoo_auth files based on Sean's recollection of communication with the authors.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
df840f218c78 Add GPL headers to the yahoo_auth files based on Sean's recollection of communication with the authors.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
19 *
8350
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
20 */
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
21
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
22 #ifndef _YAHOO_AUTH_H_
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
23 #define _YAHOO_AUTH_H_
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
24
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
25 #define NUM_TYPE_THREES 105
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
26 #define NUM_TYPE_FOURS 56
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
27 #define NUM_TYPE_FIVES 37
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
28
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
29 unsigned int yahoo_auth_finalCountdown(unsigned int challenge, int divisor, int inner_loop, int outer_loop);
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
30
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
31 /* We've defined the Yahoo authentication functions as having types 1-5; all take either 1 or 2 arguments.
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
32 */
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
33
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
34 typedef struct _auth {
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
35 int type;
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
36 int var1;
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
37 int var2;
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
38 } auth_function_t;
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
39
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
40 /* Type 3, 4 and 5 require lookups into ypager.exe's many static chunks of 256 bytes. Store them here.
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
41 */
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
42
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
43 struct buffer_t {
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
44 unsigned int buffer_start;
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
45 unsigned char buffer[257];
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
46 };
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
47
e691d75462c5 [gaim-migrate @ 9074]
Sean Egan <seanegan@pidgin.im>
parents:
diff changeset
48 #endif /* _YAHOO_AUTH_H_ */

mercurial