| 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 |
|
|---|
| 6 | This file is part of GNU Wget.
|
|---|
| 7 |
|
|---|
| 8 | GNU Wget is free software; you can redistribute it and/or modify
|
|---|
| 9 | it under the terms of the GNU General Public License as published by
|
|---|
| 10 | the Free Software Foundation; either version 2 of the License, or
|
|---|
| 11 | (at your option) any later version.
|
|---|
| 12 |
|
|---|
| 13 | GNU Wget is distributed in the hope that it will be useful,
|
|---|
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 16 | GNU General Public License for more details.
|
|---|
| 17 |
|
|---|
| 18 | You should have received a copy of the GNU General Public License
|
|---|
| 19 | along with Wget; if not, write to the Free Software
|
|---|
| 20 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|---|
| 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 | int ntlm_input PARAMS ((struct ntlmdata *, const char *));
|
|---|
| 48 |
|
|---|
| 49 | /* this is for creating ntlm header output */
|
|---|
| 50 | char *ntlm_output PARAMS ((struct ntlmdata *,
|
|---|
| 51 | const char *, const char *, int *));
|
|---|
| 52 | #endif
|
|---|