OpenVAS Libraries
6.0+beta5
Main Page
Related Pages
Data Structures
Files
File List
Globals
nasl
proto.h
Go to the documentation of this file.
1
/* OpenVAS
2
*
3
* $Id$
4
* Description: Implementation for NTLMSSP support
5
*
6
* Author:
7
* Preeti Subramanian <spreeti@secpod.com>
8
*
9
* Copyright:
10
* Copyright (c) 2010 Greenbone Networks GmbH, http://www.greenbone.net
11
*
12
* This program is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License version 2
14
* (or any later version), as published by the Free Software Foundation.
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
20
*
21
* You should have received a copy of the GNU General Public License
22
* along with this program; if not, write to the Free Software
23
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24
*/
25
26
#include <time.h>
27
#include "
smb.h
"
28
/*implemented in genrand.c*/
29
void
generate_random_buffer_ntlmssp
(
unsigned
char
*out,
int
len);
30
void
set_need_random_reseed_ntlmssp
();
31
/*implemented in time.c*/
32
void
put_long_date_ntlmssp
(
char
*p, time_t t);
33
void
GetTimeOfDay_ntlmssp
(
struct
timeval
*tval);
34
/*implemented in iconv.c*/
35
size_t
smb_iconv_ntlmssp
(
smb_iconv_t
cd,
36
const
char
**inbuf,
size_t
*inbytesleft,
37
char
**outbuf,
size_t
*outbytesleft);
38
smb_iconv_t
smb_iconv_open_ntlmssp
(
const
char
*tocode,
const
char
*fromcode);
39
int
smb_iconv_close_ntlmssp
(
smb_iconv_t
cd);
40
/*implemented in arc4.c*/
41
void
smb_arc4_init_ntlmssp
(
unsigned
char
arc4_state_out[258],
const
unsigned
char
*key,
size_t
keylen);
42
void
smb_arc4_crypt_ntlmssp
(
unsigned
char
arc4_state_inout[258],
unsigned
char
*data,
size_t
len);
43
/*implemented in charcnv.c*/
44
size_t
push_ascii_ntlmssp
(
void
*dest,
const
char
*src,
size_t
dest_len,
int
flags);
45
void
lazy_initialize_conv_ntlmssp
(
void
);
46
void
init_iconv_ntlmssp
(
void
);
Generated by
1.8.4