OpenVPN
Functions
win32-util.h File Reference
#include <winioctl.h>
#include "mtu.h"
#include "openvpn-msg.h"
#include "argv.h"
Include dependency graph for win32-util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

WCHAR * wide_string (const char *utf8, struct gc_arena *gc)
 
char * utf16to8 (const wchar_t *utf16, struct gc_arena *gc)
 
bool win_safe_filename (const char *fn)
 
const char * win_get_tempdir (void)
 

Function Documentation

◆ utf16to8()

char* utf16to8 ( const wchar_t *  utf16,
struct gc_arena gc 
)

Definition at line 50 of file win32-util.c.

References multi_instance::gc, and gc_malloc().

Referenced by strerror_win32().

◆ wide_string()

WCHAR* wide_string ( const char *  utf8,
struct gc_arena gc 
)

◆ win_get_tempdir()

const char* win_get_tempdir ( void  )

Definition at line 152 of file win32-util.c.

References M_WARN, and msg.

Referenced by get_tmp_dir(), and init_options().

◆ win_safe_filename()

bool win_safe_filename ( const char *  fn)

Definition at line 118 of file win32-util.c.

References cmp_prefix().

Referenced by platform_gen_path().