OpenVAS Scanner  21.4.1
proto.h
Go to the documentation of this file.
1 /* Copyright (C) 2010-2021 Greenbone Networks GmbH
2  *
3  * SPDX-License-Identifier: GPL-2.0-or-later
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #include <sys/param.h>
21 #include <time.h>
22 #ifdef __FreeBSD__
23 #include <sys/time.h>
24 #endif
25 #include "smb.h"
26 /*implemented in genrand.c*/
27 void
28 generate_random_buffer_ntlmssp (unsigned char *out, int len);
29 /*implemented in time.c*/
30 void
31 put_long_date_ntlmssp (char *p, time_t t);
32 void
33 GetTimeOfDay_ntlmssp (struct timeval *tval);
34 /*implemented in iconv.c*/
35 size_t
36 smb_iconv_ntlmssp (smb_iconv_t cd, const char **inbuf, size_t *inbytesleft,
37  char **outbuf, size_t *outbytesleft);
39 smb_iconv_open_ntlmssp (const char *tocode, const char *fromcode);
40 int
42 /*implemented in arc4.c*/
43 void
44 smb_arc4_init_ntlmssp (unsigned char arc4_state_out[258],
45  const unsigned char *key, size_t keylen);
46 void
47 smb_arc4_crypt_ntlmssp (unsigned char arc4_state_inout[258],
48  unsigned char *data, size_t len);
49 /*implemented in charcnv.c*/
50 void
52 void
53 init_iconv_ntlmssp (void);
struct timeval timeval(unsigned long val)
Definition: nasl_builtin_synscan.c:105
uint8_t len
Definition: nasl_packet_forgery.c:1
int smb_iconv_close_ntlmssp(smb_iconv_t cd)
Definition: iconv.c:216
smb_iconv_t smb_iconv_open_ntlmssp(const char *tocode, const char *fromcode)
Definition: iconv.c:114
void GetTimeOfDay_ntlmssp(struct timeval *tval)
Definition: time.c:102
void generate_random_buffer_ntlmssp(unsigned char *out, int len)
Definition: genrand.c:184
void put_long_date_ntlmssp(char *p, time_t t)
Definition: time.c:122
void init_iconv_ntlmssp(void)
Definition: charcnv.c:255
size_t smb_iconv_ntlmssp(smb_iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft)
Definition: iconv.c:66
void smb_arc4_crypt_ntlmssp(unsigned char arc4_state_inout[258], unsigned char *data, size_t len)
Definition: arc4.c:58
void lazy_initialize_conv_ntlmssp(void)
Definition: charcnv.c:236
void smb_arc4_init_ntlmssp(unsigned char arc4_state_out[258], const unsigned char *key, size_t keylen)
Definition: arc4.c:27
Unix SMB/CIFS implementation.
Definition: smb.h:88