Commit Graph

434 Commits (cd8f1c8ee6de4101d2acbfc0a987864d34df7822)

Author SHA1 Message Date
Samuli Seppänen f856b9aeea Merge pull request #98 from selvanair/version-info
Update version-info resource
2016-11-21 16:10:58 +02:00
Samuli Seppänen 6bed7668b7 Merge pull request #96 from chipitsine/master
travis-ci: upgraded to openssl-1.0.2i
2016-11-21 13:10:37 +02:00
Selva Nair 5fe0d5225e Make the program DPI aware
- Set dpi-awareness to true in the manifest (i.e., "system-dpi aware")
- Check system dpi and scale and/or position widgets and windows
  that depend on the system dpi (only components within the status
  window are affected).

Note: Declaring dpi awareness eliminates automatic rescaling of
windows that causes blurred text on high dpi monitors.
Windows 8.1 and later allow per monitor dpi setting which is
not handled here.
2016-11-19 21:57:39 -05:00
Selva Nair dca8160a37 Update version-info resource
- Add PRODUCTVERSION to the VERSIONINFO resource.
  Without this some versions of Windows (e.g., Server 2008 32bit)
  displays Product version = 0.0.0.0, File version = 11.1.0.0

- Also define the file and product versions in the stringinfo block
  as a stringified form of PACKAGE_VERSION_RESOURCE (e.g., "11.1.0.0").
  Windows versions that take the Product version from this block
  will now get the same value as older versions that use PRODUCTVERSION.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-11-18 17:54:00 -05:00
Samuli Seppänen 23771164a2 Merge pull request #97 from selvanair/master
Preparing for release with openvpn-2.4_beta1
2016-11-18 09:44:44 +02:00
Selva Nair 08ec365d4f Preparing for release with openvpn-2.4_beta1
- Bump version to 11.1.0.0

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-11-17 21:39:19 -05:00
Ilya Shipitsin 36c5fdd6d8 travis-ci: upgraded to openssl-1.0.2i 2016-11-17 00:50:58 +05:00
Selva Nair be417bb38f Support pkcs11 token insertion request and pin input
Note: IDS_NFO_TOKEN_PASSWORD_CAPTION and IDS_NFO_TOKEN_PASSWORD_REQUEST
strings need translation.

TODO: support for selecting pkcs11-id from the GUI

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-11-15 19:29:23 -05:00
Selva Nair 1a5ce44a99 Handle dynamic challenge/response
- Add a base64 decode function using Windows CyptoAPI
- Move multibyte to widechar conversions to a function
- Add config name to caption of password dialogs to help user
  identify the request
- Add new dialog template for generic password/PIN requests
  and use it to handle dynamic challenge

Note 1: if dynamic challenge response verification fails, an auth-failed
message is returned by the server causing the GUI to clear any saved
password even if the user-auth dialog itself succeeeded.

Note 2: Dialog template ID_DLG_CHALLENGE_RESPONSE added to language
files may require translation.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-11-15 19:14:32 -05:00
Selva Nair 38ca9a93f0 Merge pull request #95 from selvanair/trac-758
Add missing WINAPI in the declaration of HandleServiceIO

Acked-by: Gert Doering <gert@greenie.muc.de>
2016-11-15 15:45:52 -05:00
Selva Nair 1ec6c6cd12 Add missing WINAPI in the definition of HandleServiceIO
WINAPI is __stdcall in 32 bit windows (ignored in 64 bit) causing
this bug to show up in the 32 bit version only.

Also fix out-of-bounds write of ovpn_version[] in openvpn.c

Resolves Trac #758

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-11-15 12:43:11 -05:00
Pavel Zhovner 3aafabf8f5 fix Ukrainian localization 2016-11-13 15:47:28 +03:00
ValdikSS 3648896b33 More Russian fixes 2016-11-13 13:32:20 +03:00
ValdikSS 10c2a74312 Russian translation updates 2016-11-13 13:10:00 +03:00
Samuli Seppänen 19ada91d85 Merge pull request #90 from selvanair/mute-no-iservice-warning
Check for interactive service only if OpenVPN version is >= 2.4
2016-11-02 11:15:46 +02:00
Selva Nair 81ece9690e Check for interactive service only if OpenVPN version is >= 2.4
This makes it less confusing to run GUI v11 with OpenVPN 2.3.x

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-11-01 23:06:39 -04:00
Selva Nair 4d6a879ce3 Merge pull request #89 from mattock/about_page
Update About page
2016-10-21 11:23:24 -04:00
Samuli Seppänen 32c31ab942 Update About page
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
2016-10-21 11:15:33 +03:00
Samuli Seppänen 135f177546 Merge pull request #86 from selvanair/get-pid-v2
Some bug fixes
2016-10-18 10:00:02 +03:00
Samuli Seppänen d3581746cb Merge pull request #80 from chipitsine/master
cleaned up unused resource
2016-10-11 15:12:20 +03:00
Selva Nair ad58766f52 Do not start a connection when a previous thread has not fully exited
When openvpn exits due to error, the GUI pops up a modal dialog and
waits on user to click OK before cleaning up resources and closing
the status window. During this phase if the user clicks "connect"
from the tray menu, a new thread is started overwriiting several
handles in the connection struct.

Fix: Refuse to start a connection when previous status thread is
still active. Instead, bring the exisiting status window to fore-ground.
Also make the modal dialog a child of the status window for better
visibility.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-10-08 16:25:56 -04:00
Selva Nair fcd0efa479 Terminate any openvpn processes that fail to stop
Sometimes gracefully stopping openvpn fails leaving the
process running in background. This causes restarting of
connections to fail until those processes are manually killed.

- Read process ID from interactive service to get process
  handle when openvpn is started by the service.
- Add a last resort method to forcefully terminate openvpn
  process that fails to exit aftier sending stop signal. Terminate
  is triggered after a 3 second timeout following Stop.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-10-08 16:25:38 -04:00
Selva Nair 9892d5813f NUL terminate messages received from interactive service
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-10-08 16:23:47 -04:00
Ilya Shipitsin 0f531dc3ee cleaned up unused resource 2016-09-24 17:17:23 +05:00
Selva Nair 9ed9abec4f Merge pull request #84 from selvanair/no-config-msg
Improve the message shown when no config files are found

Acked-by: schwabe (Arne Schwabe)
2016-09-20 10:34:54 -04:00
Selva Nair 395caf88db Improve the message shown when no config files are found
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-09-19 21:46:06 -04:00
Samuli Seppänen dbe459f418 Merge pull request #71 from ValdikSS/master
Update Russian translation
2016-09-17 12:22:56 +03:00
Samuli Seppänen 8226f17eff Merge pull request #72 from ValdikSS/nonewline
No new line for "Starting this connection requires membership in"
2016-08-29 11:57:03 +03:00
Samuli Seppänen 9fd2dc75f3 Merge pull request #74 from chipitsine/master
removed unused nsis installer
2016-08-29 11:50:53 +03:00
Samuli Seppänen 8af2927b9d Merge pull request #75 from ValdikSS/res-it-73
Fix Italian typo
2016-08-29 11:04:25 +03:00
ValdikSS 7ab7f47fda Fix Italian typo 2016-08-28 22:26:42 +03:00
ValdikSS 06218b4f69 Update Russian translation v3 2016-08-28 22:24:13 +03:00
Ilya Shipitsin 68552bf523 removed unused nsis installer 2016-08-27 10:28:16 +05:00
ValdikSS f2439c7970 Update Russian translation v2 2016-08-24 23:01:33 +03:00
ValdikSS e55de21e37 No new line for "Starting this connection requires membership in" 2016-08-24 19:51:47 +03:00
ValdikSS 187f646fa8 Update Russian translation 2016-08-24 13:07:35 +03:00
Samuli Seppänen 67e63328df Merge pull request #70 from chipitsine/russian-translation
more russian translation
2016-08-24 11:41:48 +03:00
Selva Nair c3099acc59 Merge pull request #69 from chipitsine/master
fix build --disable-password-change
2016-08-23 15:38:10 -04:00
Ilya Shipitsin 3e57007f2b more russian translation 2016-08-24 00:05:33 +05:00
Ilya Shipitsin f3aed466de fix build --disable-password-change 2016-08-23 23:37:57 +05:00
Samuli Seppänen 2398e32b03 Merge pull request #62 from selvanair/registry
Remove some registry keys/options and use file association for open/edit
2016-08-23 18:47:58 +03:00
Samuli Seppänen 335c3e3069 Merge pull request #60 from chipitsine/master
add --disable-password-change option to configure
2016-08-22 10:10:50 +03:00
Selva Nair 5a47986ccb Make options saved in registry editable by user
Option ediitng dialogs are in two tabs: General and Advanced.
Proxy related options are left in the proxy tab. Options
config_dir, config_ext, log_dir, script timeouts and
service-only flag are in the Advanced tab. All other more commonly
used flags and options are in the General tab.

- As options are editable, save values in registry only when they differ
  from the default values. This leaves the registry clean and makes changing
  options and their defaults during updates easier.

- Entries for config_dir and log_dir must be absolute paths.
  Environemental variables such as %PROFILEDIR% may be used
  to construct these.

- Empty config_dir, config_ext and log_dir entries are silently
  ignored (i.e., the current values are left unchanged).

- Store all numeric and boolean parameters in registry as DWORD instead of
  strings.

- On startup, the default parameters are loaded, then the registry is read
  and finally command-line parameters parsedi.

- Out of range script timeout values in registry truncated with a
  warning instead of fatal error. This allows the user to access the
  settings dialog and make corrections.

- Save proxy and language settings under the same
  HKCU\Software\OpenVPN-GUI key as other options instead of under Nilings.

- Save the current version of the GUI in regsitry so that updates
  can be detected and any needed registry cleanup done.

- If no version info is present in the registry any values in OpenVPN-GUI
  key in HKCU are deleted for a clean start as this is the first version
  to save registry values in HKCU. Language and proxy data if present
  under Nilings is migrated.

Note: new controls in the General tab and newly added Advanced tab dialog
are copied to all language files from the English version. These need to
be translated.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-08-06 11:46:15 -04:00
Selva Nair 964d728a42 Use file associations to open config and log
- Use ShellExecute to open config and log files so that
  file associations can be used. If that fails fall-back to
  the default editor (notepad.exe).
- Remove the keys editor and log_viewer from registry.
  The user can change the editor/viewer through fie association.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-08-06 11:46:15 -04:00
Selva Nair 1c748e382d Simplify some parameters and registry keys
- Replace allow_password by a runtime check that enables password
  change menu only when the user has write-access to the key file.
- Read exe_path and priority from HKLM and do not duplicate in HKCU.
- Always allow the user to view the config: edit will succeed if user
  has write access.
- Always include the proxy settings tab which is the default.
- Remove the unused power event handling and disconnect_on_suspend key.
- Remove password_attempts -- user can stop the password dilaog
  by clicking cancel.
- Remove allow_service: implicitly enabled if service_only is used.
- Deprecate removed options in cmd-line parser
- Update README.rst
- Close config file before exit in GetKeyFileName
- Close thread and dialog handles in passphrase.c

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-08-06 11:46:15 -04:00
Ilya Shipitsin 9625d6f3c6 added --disable-password-change to configure and travis-ci 2016-08-02 01:22:05 +05:00
Ilya Shipitsin 886685528f travis-ci: upgrade to openssl-1.0.1t 2016-08-01 20:53:27 +05:00
Selva Nair 449944cef0 Merge pull request #66 from chipitsine/save-pass-translation
save pass: russian translation
2016-07-22 11:54:54 -04:00
Ilya Shipitsin 1f60125439 save pass: russian translation 2016-07-22 16:34:43 +05:00
Selva Nair 61fbb48cd2 Merge pull request #63 from ffes/nl-2016-07
Update Dutch translation
2016-07-18 22:40:52 -04:00