]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Make most registry values optional
authorSelva Nair <selva.nair@gmail.com>
Sat, 18 Nov 2017 17:40:58 +0000 (12:40 -0500)
committerGert Doering <gert@greenie.muc.de>
Tue, 20 Feb 2018 12:11:12 +0000 (13:11 +0100)
commitdb04bca6729e9fe1ea60f0b3bd0329244a6ed611
tree666ed90ba73f34b36843ea71cadc9dab2fc831ab
parentb1263b06db40f21a8fd20e0efd0c12e37ce89a2c
Make most registry values optional

Not all installations need registry values such as log_dir and
config_dir especially if automatic service is not in use.
This patch provides reasonable defaults for registry values.

- Read the default value of HKLM\Software\PACKAGE_NAME to get the
  install path and construct defaults for exe_path, config_dir,
  log_dir from it. Use "ovpn", "0", NORMAL_PRIORITY as the defaults
  for config file extension, log-append flag and process priority.

The only remaining required registry entry is the root key (usually
HKLM\Software\OpenVPN) whose default value should be set to the
installation path.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1511026858-23281-2-git-send-email-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15892.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpnserv/common.c