OpenVAS Libraries  7.0.7
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 /*implemented in time.c*/
31 void put_long_date_ntlmssp(char *p, time_t t);
32 void GetTimeOfDay_ntlmssp(struct timeval *tval);
33 /*implemented in iconv.c*/
35  const char **inbuf, size_t *inbytesleft,
36  char **outbuf, size_t *outbytesleft);
37 smb_iconv_t smb_iconv_open_ntlmssp(const char *tocode, const char *fromcode);
39 /*implemented in arc4.c*/
40 void smb_arc4_init_ntlmssp(unsigned char arc4_state_out[258], const unsigned char *key, size_t keylen);
41 void smb_arc4_crypt_ntlmssp(unsigned char arc4_state_inout[258], unsigned char *data, size_t len);
42 /*implemented in charcnv.c*/
43 size_t push_ascii_ntlmssp(void *dest, const char *src, size_t dest_len, int flags);
45 void init_iconv_ntlmssp(void);