]> sjero.net Git - wget/blob - src/http-ntlm.h
[svn] Merge of fix for bugs 20341 and 20410.
[wget] / src / http-ntlm.h
1 #ifndef __HTTP_NTLM_H
2 #define __HTTP_NTLM_H
3 /* Declarations for http_ntlm.c
4    Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
5    Contributed by Daniel Stenberg.
6
7 This file is part of GNU Wget.
8
9 GNU Wget is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12  (at your option) any later version.
13
14 GNU Wget is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with Wget.  If not, see <http://www.gnu.org/licenses/>.
21
22 In addition, as a special exception, the Free Software Foundation
23 gives permission to link the code of its release of Wget with the
24 OpenSSL project's "OpenSSL" library (or with modified versions of it
25 that use the same license as the "OpenSSL" library), and distribute
26 the linked executables.  You must obey the GNU General Public License
27 in all respects for all of the code used other than "OpenSSL".  If you
28 modify this file, you may extend this exception to your version of the
29 file, but you are not obligated to do so.  If you do not wish to do
30 so, delete this exception statement from your version.  */
31
32 typedef enum {
33   NTLMSTATE_NONE,
34   NTLMSTATE_TYPE1,
35   NTLMSTATE_TYPE2,
36   NTLMSTATE_TYPE3,
37   NTLMSTATE_LAST
38 } wgetntlm;
39
40 /* Struct used for NTLM challenge-response authentication */
41 struct ntlmdata {
42   wgetntlm state;
43   unsigned char nonce[8];
44 };
45
46 /* this is for ntlm header input */
47 bool ntlm_input (struct ntlmdata *, const char *);
48
49 /* this is for creating ntlm header output */
50 char *ntlm_output (struct ntlmdata *, const char *, const char *, bool *);
51 #endif