OpenVAS Libraries  8.0.3
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
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version 2
15  * of the License, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
25  */
26 
27 #include <time.h>
28 #include "smb.h"
29 /*implemented in genrand.c*/
30 void generate_random_buffer_ntlmssp( unsigned char *out, int len);
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*/
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);
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);
46 void init_iconv_ntlmssp(void);
void smb_arc4_init_ntlmssp(unsigned char arc4_state_out[258], const unsigned char *key, size_t keylen)
Definition: arc4.c:30
size_t push_ascii_ntlmssp(void *dest, const char *src, size_t dest_len, int flags)
Definition: charcnv.c:603
void GetTimeOfDay_ntlmssp(struct timeval *tval)
Definition: time.c:92
void generate_random_buffer_ntlmssp(unsigned char *out, int len)
Definition: genrand.c:167
void init_iconv_ntlmssp(void)
Definition: charcnv.c:230
size_t smb_iconv_ntlmssp(smb_iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft)
Definition: iconv.c:65
void put_long_date_ntlmssp(char *p, time_t t)
Definition: time.c:111
smb_iconv_t smb_iconv_open_ntlmssp(const char *tocode, const char *fromcode)
Definition: iconv.c:111
struct timeval timeval(unsigned long val)
Definition: nasl_builtin_synscan.c:110
void lazy_initialize_conv_ntlmssp(void)
Definition: charcnv.c:212
Definition: smb.h:83
int smb_iconv_close_ntlmssp(smb_iconv_t cd)
Definition: iconv.c:201
void smb_arc4_crypt_ntlmssp(unsigned char arc4_state_inout[258], unsigned char *data, size_t len)
Definition: arc4.c:57