Wed, 13 May 2009 20:37:46 +0000
propagate from branch 'im.pidgin.pidgin' (head 05ca719b901b1d28ae6ec27aa289ea1fd9a2539a)
to branch 'im.pidgin.cpw.malu.client_type' (head f637c4c27815f9f3a790583ca3f64b53b59e2256)
| 8350 | 1 | /* |
| 2 | * yahoo_auth.h: Header for Yahoo Messenger authentication schemes. Eew. | |
| 3 | * | |
| 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 | 20 | */ |
| 21 | ||
| 22 | #ifndef _YAHOO_AUTH_H_ | |
| 23 | #define _YAHOO_AUTH_H_ | |
| 24 | ||
| 25 | #define NUM_TYPE_THREES 105 | |
| 26 | #define NUM_TYPE_FOURS 56 | |
| 27 | #define NUM_TYPE_FIVES 37 | |
| 28 | ||
| 29 | unsigned int yahoo_auth_finalCountdown(unsigned int challenge, int divisor, int inner_loop, int outer_loop); | |
| 30 | ||
| 31 | /* We've defined the Yahoo authentication functions as having types 1-5; all take either 1 or 2 arguments. | |
| 32 | */ | |
| 33 | ||
| 34 | typedef struct _auth { | |
| 35 | int type; | |
| 36 | int var1; | |
| 37 | int var2; | |
| 38 | } auth_function_t; | |
| 39 | ||
| 40 | /* Type 3, 4 and 5 require lookups into ypager.exe's many static chunks of 256 bytes. Store them here. | |
| 41 | */ | |
| 42 | ||
| 43 | struct buffer_t { | |
| 44 | unsigned int buffer_start; | |
| 45 | unsigned char buffer[257]; | |
| 46 | }; | |
| 47 | ||
| 48 | #endif /* _YAHOO_AUTH_H_ */ |