OpenVAS Libraries
9.0.3
|
Character-set conversion routines built on our iconv. More...
#include "byteorder.h"
#include "iconv.h"
#include "smb.h"
#include "proto.h"
#include "../misc/openvas_logging.h"
Go to the source code of this file.
Macros | |
#define | uint8 uint8_t |
#define | uint16 uint16_t |
#define | _PUBLIC_ |
#define | False 0 |
#define | True 1 |
Typedefs | |
typedef unsigned int | bool |
Functions | |
size_t | convert_string_ntlmssp (charset_t from, charset_t to, void const *src, size_t srclen, void *dest, size_t destlen, bool allow_badcharcnv) |
char | lp_failed_convert_char_ntlmssp (void) |
void | init_valid_table_ntlmssp (void) |
size_t | strlen_w_ntlmssp (const uint16 *src) |
void | lazy_initialize_conv_ntlmssp (void) |
void | init_iconv_ntlmssp (void) |
Character-set conversion routines built on our iconv.
Definition in file charcnv.c.
size_t convert_string_ntlmssp | ( | charset_t | from, |
charset_t | to, | ||
void const * | src, | ||
size_t | srclen, | ||
void * | dest, | ||
size_t | destlen, | ||
bool | allow_bad_conv | ||
) |
Convert string from one encoding to another, making error checking etc Fast path version - handles ASCII first.
src | pointer to source string (multibyte or singlebyte) |
srclen | length of the source string in bytes, or -1 for nul terminated. |
dest | pointer to destination string (multibyte or singlebyte) |
destlen | maximal length allowed for string - NEVER -1. |
allow_bad_conv | determines if a "best effort" conversion is acceptable (never returns errors) |
Ensure the srclen contains the terminating zero.
This function has been hand-tuned to provide a fast path. Don't change unless you really know what you are doing. JRA.
Definition at line 441 of file charcnv.c.
References CH_UTF16BE, and CH_UTF16LE.
void init_iconv_ntlmssp | ( | void | ) |
Initialize iconv conversion descriptors.
This is called the first time it is needed, and also called again every time the configuration is reloaded, because the charset or codepage might have changed.
Definition at line 214 of file charcnv.c.
References False.
char lp_failed_convert_char_ntlmssp | ( | void | ) |
size_t strlen_w_ntlmssp | ( | const uint16 * | src | ) |