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

« back to all changes in this revision

Viewing changes to openvpn.c

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Gonzalez Iniesta
  • Date: 2008-07-23 10:38:13 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080723103813-axq5wohvwjr4jo0s
Tags: 2.1~rc8-1
* New upstream version
* Added Build-dep on libpkcs11-helper1 to re-enable PKCS#11
  support. Sorry for the delay Florian :) (Closes: #475353)

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-2005 OpenVPN Solutions LLC <info@openvpn.net>
 
8
 *  Copyright (C) 2002-2008 OpenVPN Solutions LLC <info@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
22
22
 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
23
 */
24
24
 
25
 
#ifdef WIN32
26
 
#include "config-win32.h"
27
 
#else
28
 
#include "config.h"
29
 
#endif
30
 
 
31
25
#include "syshead.h"
32
26
 
33
27
#include "init.h"
136
130
          gc_init (&c.gc);
137
131
 
138
132
          /* initialize environmental variable store */
139
 
          c.es = env_set_create (&c.gc);
 
133
          c.es = env_set_create (NULL);
140
134
 
141
135
#ifdef ENABLE_MANAGEMENT
142
136
          /* initialize management subsystem */
144
138
#endif
145
139
 
146
140
          /* initialize options to default state */
147
 
          init_options (&c.options);
 
141
          init_options (&c.options, true);
148
142
 
149
143
          /* parse command line options, and read configuration file */
150
144
          parse_argv (&c.options, argc, argv, M_USAGE, OPT_P_DEFAULT, NULL, c.es);
175
169
            break;
176
170
 
177
171
          /* sanity check on options */
178
 
          options_postprocess (&c.options, c.first_time);
 
172
          options_postprocess (&c.options);
179
173
 
180
174
          /* show all option settings */
181
175
          show_settings (&c.options);
239
233
 
240
234
  context_gc_free (&c);
241
235
 
 
236
  env_set_destroy (c.es);
 
237
 
242
238
#ifdef ENABLE_MANAGEMENT
243
239
  /* close management interface */
244
240
  close_management ();