~smoser/ubuntu/oneiric/openvpn/lp-794916

« back to all changes in this revision

Viewing changes to win32.h

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Gonzalez Iniesta
  • Date: 2008-08-16 13:34:24 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20080816133424-0i83yb6dw4hjglo1
Tags: 2.1~rc9-3
* debian/rules: run ./configure with path to 'route', for
  those build daemons without 'route'. (Closes: #495082)
* Created NEWS.Debian with info on new option script-security.
  (Closes: #494998)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *             packet encryption, packet authentication, and
6
6
 *             packet compression.
7
7
 *
8
 
 *  Copyright (C) 2002-2008 OpenVPN Solutions LLC <info@openvpn.net>
 
8
 *  Copyright (C) 2002-2008 Telethra, Inc. <sales@openvpn.net>
9
9
 *
10
10
 *  This program is free software; you can redistribute it and/or modify
11
11
 *  it under the terms of the GNU General Public License version 2
28
28
 
29
29
#include "mtu.h"
30
30
 
 
31
/* location of executables */
 
32
#define SYS_PATH_ENV_VAR_NAME "SystemRoot"  /* environmental variable name that normally contains the system path */
 
33
#define DEFAULT_WIN_SYS_PATH  "C:\\WINDOWS" /* --win-sys default value */
 
34
#define NETSH_PATH_SUFFIX     "\\system32\\netsh.exe"
 
35
#define WIN_ROUTE_PATH_SUFFIX "\\system32\\route.exe"
 
36
 
31
37
/*
32
38
 * Win32-specific OpenVPN code, targetted at the mingw
33
39
 * development environment.
247
253
/* Set Win32 security attributes structure to allow all access */
248
254
bool init_security_attributes_allow_all (struct security_attributes *obj);
249
255
 
 
256
/* return true if filename is safe to be used on Windows */
 
257
bool win_safe_filename (const char *fn);
 
258
 
 
259
/* add constant environmental variables needed by Windows */
 
260
struct env_set;
 
261
void env_set_add_win32 (struct env_set *es);
 
262
 
 
263
/* get and set the current windows system path */
 
264
void set_win_sys_path (const char *newpath, struct env_set *es);
 
265
void set_win_sys_path_via_env (struct env_set *es);
 
266
char *get_win_sys_path (void);
 
267
 
250
268
#endif
251
269
#endif