OpenVAS Scanner
22.7.9
charset.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Greenbone AG
2
* SPDX-FileCopyrightText: 2002 Jelmer Vernooij
3
* SPDX-FileCopyrightText: 2001 Andrew Tridgell
4
*
5
* SPDX-License-Identifier: GPL-2.0-or-later
6
*/
7
13
/* MODIFICATION: This has only those functions that cater to the requirements of
14
* OpenVAS, remaining functions are removed*/
15
#ifndef NASL_CHARSET_H
16
#define NASL_CHARSET_H
17
18
#include "
smb.h
"
19
20
#include <string.h>
21
22
/* this defines the charset types used in samba */
23
typedef
enum
24
{
25
CH_UTF16LE
= 0,
26
CH_UTF16
= 0,
27
CH_UNIX
= 1,
28
CH_DISPLAY
= 2,
29
CH_DOS
= 3,
30
CH_UTF8
= 4,
31
CH_UTF16BE
= 5
32
}
charset_t
;
33
34
#define NUM_CHARSETS 6
35
/*
36
* for each charset we have a function that pushes from that charset to a ucs2
37
* buffer, and a function that pulls from ucs2 buffer to that charset.
38
*/
39
40
struct
charset_functions_ntlmssp
41
{
42
const
char
*
name
;
43
size_t (*
pull
) (
void
*,
const
char
**inbuf,
size_t
*inbytesleft,
44
char
**outbuf,
size_t
*outbytesleft);
45
size_t (*
push
) (
void
*,
const
char
**inbuf,
size_t
*inbytesleft,
46
char
**outbuf,
size_t
*outbytesleft);
47
struct
charset_functions_ntlmssp
*
prev
, *
next
;
48
};
49
#endif
charset_functions_ntlmssp::name
const char * name
Definition:
charset.h:42
charset_functions_ntlmssp
Definition:
charset.h:41
CH_DISPLAY
@ CH_DISPLAY
Definition:
charset.h:28
CH_UNIX
@ CH_UNIX
Definition:
charset.h:27
CH_DOS
@ CH_DOS
Definition:
charset.h:29
charset_t
charset_t
Definition:
charset.h:24
charset_functions_ntlmssp::push
size_t(* push)(void *, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft)
Definition:
charset.h:45
CH_UTF8
@ CH_UTF8
Definition:
charset.h:30
CH_UTF16LE
@ CH_UTF16LE
Definition:
charset.h:25
CH_UTF16BE
@ CH_UTF16BE
Definition:
charset.h:31
charset_functions_ntlmssp::next
struct charset_functions_ntlmssp * next
Definition:
charset.h:47
smb.h
Unix SMB/CIFS implementation.
charset_functions_ntlmssp::pull
size_t(* pull)(void *, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft)
Definition:
charset.h:43
CH_UTF16
@ CH_UTF16
Definition:
charset.h:26
charset_functions_ntlmssp::prev
struct charset_functions_ntlmssp * prev
Definition:
charset.h:47
nasl
charset.h
Generated on Wed Feb 7 2024 00:00:00 for OpenVAS Scanner by
1.8.20