]> sjero.net Git - wget/blob - src/http-ntlm.h
05e03ca90ea9afc41f9f62968df528fc122aa5ce
[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 2 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, write to the Free Software Foundation, Inc.,
21 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22
23 In addition, as a special exception, the Free Software Foundation
24 gives permission to link the code of its release of Wget with the
25 OpenSSL project's "OpenSSL" library (or with modified versions of it
26 that use the same license as the "OpenSSL" library), and distribute
27 the linked executables.  You must obey the GNU General Public License
28 in all respects for all of the code used other than "OpenSSL".  If you
29 modify this file, you may extend this exception to your version of the
30 file, but you are not obligated to do so.  If you do not wish to do
31 so, delete this exception statement from your version.  */
32
33 typedef enum {
34   NTLMSTATE_NONE,
35   NTLMSTATE_TYPE1,
36   NTLMSTATE_TYPE2,
37   NTLMSTATE_TYPE3,
38   NTLMSTATE_LAST
39 } wgetntlm;
40
41 /* Struct used for NTLM challenge-response authentication */
42 struct ntlmdata {
43   wgetntlm state;
44   unsigned char nonce[8];
45 };
46
47 /* this is for ntlm header input */
48 bool ntlm_input (struct ntlmdata *, const char *);
49
50 /* this is for creating ntlm header output */
51 char *ntlm_output (struct ntlmdata *, const char *, const char *, bool *);
52 #endif