annotate libpurple/protocols/yahoo/yahoo_auth.h @ 24653:fecedf6d9ee1

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