source: trunk/essentials/net-misc/wget/src/http-ntlm.h

Last change on this file was 3440, checked in by bird, 18 years ago

wget 1.10.2

File size: 1.9 KB
Line 
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
6This file is part of GNU Wget.
7
8GNU Wget is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13GNU Wget is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with Wget; if not, write to the Free Software
20Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
22In addition, as a special exception, the Free Software Foundation
23gives permission to link the code of its release of Wget with the
24OpenSSL project's "OpenSSL" library (or with modified versions of it
25that use the same license as the "OpenSSL" library), and distribute
26the linked executables. You must obey the GNU General Public License
27in all respects for all of the code used other than "OpenSSL". If you
28modify this file, you may extend this exception to your version of the
29file, but you are not obligated to do so. If you do not wish to do
30so, delete this exception statement from your version. */
31
32typedef 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 */
41struct ntlmdata {
42 wgetntlm state;
43 unsigned char nonce[8];
44};
45
46/* this is for ntlm header input */
47int ntlm_input PARAMS ((struct ntlmdata *, const char *));
48
49/* this is for creating ntlm header output */
50char *ntlm_output PARAMS ((struct ntlmdata *,
51 const char *, const char *, int *));
52#endif
Note: See TracBrowser for help on using the repository browser.