Commit Graph

547 Commits (b3f55135fbc9895e48a26e8cb150d8d11182e6aa)

Author SHA1 Message Date
Selva Nair 2f5084d47e Set a fall back for editor if file association fails
- When registry keys were simplified, the log viewer and editor
  entries were removed in favour of file associations that the
  user can independently control.

  Yet, there are times when an associated application fails to start
  or no associations are present etc., and its useful to have a fall
  back editor setting to open config and log files.
  This patch sets that default as "notepad.exe"

- Also remove the unused profile_dir[] in registry.c
  and have add a default for Windows directory

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2018-04-23 15:49:10 +03:00
Erwin Bronkhorst 52b1647a57 Add Dutch translations for recently added resources 2018-04-23 15:46:26 +03:00
Selva Nair 14615356e5 Do not clear saved passwords on verification failure
After a failure the auth-pass dialog is shown with the password
field prefilled but highlighted. This allows the user to easily
overwrite the password or resubmit the old password if the
failure was temporary.

After a private key passphrase failure, the dialog is not
prefilled with saved password as this failure happens locally
and in such cases the password is very likely wrong.

If the user aborts the dialog by pressing cancel, the saved
password will get used during the next connection attempt.

Wrong username or password warning text is changed to: "Wrong
credentials".

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2018-04-23 15:41:03 +03:00
Ilya Shipitsin 4a4a6ab52f remove unused resource
after https://github.com/OpenVPN/openvpn-gui/pull/188 that string
is not used anymore
2018-04-23 15:39:47 +03:00
Selva Nair b23c4c2736 Update year in the "About" tab
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2018-04-02 20:59:25 -04:00
Selva Nair 6107c38692 Do not allow echo save-passwords to override disable_save_passwords
- As disable_save_passwords may be enforced system-wide by an Administrator,
  "echo save-passwords" should not be allowed to over-ride it. This was
  overlooked in commit d4090a8842.
  Fix it by ignoring this echo directive if disable_save_passwords is in
  effect. Also write a log message to the status window.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2018-03-10 13:40:28 -05:00
Ilya Shipitsin 1c020eee60 add EXSTYLE WS_EX_TOPMOST to login/auth window
(same way it is already done for key password dialog)
2018-03-10 11:00:02 -05:00
Samuli Seppänen 81b4031285 Bump version to 11.10.0.0
The v11.10.0.0 tag was pointed at the previous commit by mistake

Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
2018-03-02 19:44:26 +02:00
Samuli Seppänen 961d1b37c2 Get rid of TODO
It is obsolete and the tasks in there are best tracked locally or in GitHub
issues.

URL: https://github.com/OpenVPN/openvpn-gui/pull/225
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
2018-02-27 10:05:07 -05:00
Ilya Shipitsin e7fd11812f simplify caption on user/password auth window
also add openvpn ico to auth window
2018-01-30 10:29:00 +02:00
Selva Nair ecb8e50c0f Display assigned IPs and connection stats on status window
- Show the assigned IP numbers, traffic stats (bytes in/out), and
  the GUI and OpenVPN core versions on the status window.

Note: IDS_TXT_BYTECOUNT = "Bytes in: %s out %s" needs translation.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2018-01-30 10:20:58 +02:00
Selva Nair 105e022f7b Subscribe to bytecount message from management interface
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2018-01-30 10:20:58 +02:00
Selva Nair dd8c4dfdab Show assigned ipv6 address in balloon and tray popup
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2018-01-29 09:40:36 +02:00
Selva Nair b18d1a9245
Merge pull request #208 from selvanair/readme
Update README.rst
2018-01-24 10:45:44 -05:00
Selva Nair 844de0c75f Update README
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2018-01-24 10:13:11 -05:00
Selva Nair c87c7387b3
Merge pull request #188 from selvanair/already-running-v2
Support sending commands to a running instance of the GUI
2018-01-24 07:38:07 -05:00
Selva Nair 92570bce1e
Merge pull request #207 from MaxXor/res-de
Update german translation

Acked-by: Gert Doering <gert@greenie.muc.de>
2018-01-23 22:53:07 -05:00
MaxXor eabd26fc18 Update german translation 2018-01-23 19:08:37 +01:00
Samuli Seppänen 64b0ae83c8
Merge pull request #192 from MaxXor/res-de
Update german translation
2018-01-23 14:04:16 +02:00
Samuli Seppänen b54365788e
Merge pull request #205 from chipitsine/openssl_1.1.0
travis-ci: add openssl-1.1.0 support
2018-01-23 13:58:09 +02:00
Selva Nair 874d0890dd Document sending commands to a running instance
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2018-01-22 00:31:11 -05:00
Selva Nair 688f41878f More helpful message if already running
Why: The current message assumes the balloon to appear attached
to the icon which is not the case in Windows 10.

Based on feedback from larson0815 and Deantwo here:
https://github.com/selvanair/openvpn-gui/issues/5

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2018-01-20 11:43:02 -05:00
Selva Nair 10f34584ea In '--connect profile-name' make the extension (.ovpn) optional
Treat '--connect foo.ovpn' and '--connect foo' as the same. This matches
with the behaviour of '--command connect foo'.

Note: the argument is first compared against config file names and then
against config names.

Based on comment by larson0815 here:
https://github.com/selvanair/openvpn-gui/issues/5

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2018-01-20 11:42:24 -05:00
Selva Nair eb52950f7a Treat --connect as --command connect in case GUI is already running
- This makes the behaviour more intuitive for those used to the
  auto connect option (--connect xxx). Note: this will work only for
  the first occurrence of --connect as --command allows only one profile
  to be speciifed.
- Also make '--command connect' behave as '--connect' if the GUI is not
  already running.

Based on comment by larson0815 here:
https://github.com/selvanair/openvpn-gui/issues/5

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2018-01-20 11:42:23 -05:00
Selva Nair 0f21030774 Support sending commands to running instance
- New option --command <action> <params> to send commands to
  a running instance of openvpn-gui.exe
  Supported actions are
      connect, disconnect, reconnect
  each of which takes the name of the config (with or without the
  extension .ovpn) as a parameter;
      disconnect_all, exit
  which take no parameter and
      silent_connection
  which takes an optional parameter = 0 or 1 (1 is the default)

  Examples: with the gui running, start a new instance as

  openvpn-gui.exe --command disconnect myvpn : ask running instance
                        to disconnect myvpn if connected
  openvpn-gui.exe --command status myvpn     : ask running instance
                        to show the status window for myvpn if available
  openvpn-gui.exe --command disconnect_all   : ask running instance
                        to disconnect all active connections

- The second instance exits after issuing a SendMessage to the
  already running instance. If no action is specified, the running
  instance is notified to show a balloon to alert the user

- These messages may also be sent from scripts as COPYDATA messages
  with the wData element specifying the action to execute and lpData
  a pointer to the parameter. The dwData param must be one of
  WM_OVPN_xxx with xxx = START, STOP, RESTART, STOPALL, EXIT or
  SILENT. See main.h for their values.

v2: Bug fixes based on test reports from larson0815
here: https://github.com/selvanair/openvpn-gui/issues/5
and cron410 here: https://github.com/OpenVPN/openvpn-gui/issues/104

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2018-01-20 11:42:23 -05:00
Selva Nair 31896ce33b Add restart button to connection menus
- This works the same way as restart button in the status window
  but is more conveniently accessible from the tray menu.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2018-01-20 11:41:19 -05:00
Ilya Shipitsin 8418bc7f45 travis-ci: add openssl-1.1.0 support 2018-01-18 18:00:10 +05:00
Samuli Seppänen 4055f86206
Merge pull request #202 from selvanair/auto-submit-fix
Do not auto submit username/password after an auth failure
2018-01-11 20:49:28 +02:00
Samuli Seppänen 5233f81fdc
Merge pull request #204 from chipitsine/better_align
better alignment of warning message
2018-01-11 20:47:37 +02:00
Ilya Shipitsin 0642cb8fe5 better alignment of warning message 2018-01-06 21:14:11 +05:00
Samuli Seppänen 1c1bf2045b
Merge pull request #201 from chipitsine/russian
russian localization for "no-auth-prompt" branch
2018-01-06 16:51:15 +02:00
Selva Nair 185b571d6e Do not auto submit username/password after an auth failure
- This case was missed by commit 5fb23f6ad9 that introduced
  automatic username/password submission.
- Also avoid auto submit if the recalled password is an empty
  string.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2018-01-03 21:38:40 -05:00
Ilya Shipitsin 52219fcebf russian localization for "no-auth-prompt" branch 2017-12-29 01:27:52 +05:00
Selva Nair 702251327c
Merge pull request #186 from selvanair/no-auth-prompt
Use saved password with no prompt if silent_connection is on

Acked by: Илья Шипицин <chipitsine@gmail.com>
2017-12-26 14:41:17 -05:00
Selva Nair 5fb23f6ad9 Auto submit saved auth-user-pass credentials after a brief delay
- Effective only when username and password are saved.
- The user may interrupt auto submission and edit the username/password.
- If silent_connection is on the dialog is bypassed without any delay.

v2 changes:
- Display message in normal text color and show remaining time

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2017-12-26 13:41:55 -05:00
Selva Nair d98ad55467 Change OK button style to BS_DEFPUSHBUTTON in auth-user-pass dialog
- Make the OK button appear highlighted as the default action so that
  the user can press enter and submit the form. This also gives a clearer
  indication of the default action when automatic submission of saved
  username/password activates.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2017-12-26 13:41:55 -05:00
Selva Nair cf2d1a8632
Merge pull request #197 from selvanair/registry-optional
Add a default for openvpnpath

Acked-by: Илья Шипицин <chipitsine@gmail.com>
Acked-by: Samuli Seppänen <samuli@openvpn.net>
2017-12-05 10:12:21 -05:00
Selva Nair 7b57cd1ac8
Merge pull request #194 from selvanair/validate-input
Validate user input

Acked-by: Gert Doering  <gert@greenie.muc.de>
2017-12-04 23:49:00 -05:00
Selva Nair daef688990 Add a default for openvpnpath
Allow the GUI to run without any registry keys present:
the location of openvpn installation defaults to
C:\Program Files\OpenVPN if not found in registry.

Useful for testing builds or to display --help etc.

See also: PR #147

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2017-12-03 13:57:33 -05:00
Selva Nair 301a5e5644 Check for invalid characters in user inputs
- Flag password and username input if these contain an invalid character
  (currently only embedded '\n' is disallowed). Shows a popup when OK
  is pressed so that the user can correct the input and resubmit.

- Add an error message to the log when the management i/f returns
  ERROR for incorrectly parsed commands. Otherwise such errors go
  unnoticed.

Note: IDS_ERR_INVALID_USERNAME/PASSWORD need translations.

Reported and tested by: Florian Beier (H4ndl3 on github)
Fixes Trac: #958

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2017-11-20 09:53:31 -05:00
Selva Nair 8eb06fa697 Correct parsing of the process ID returned by interatcive service
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2017-11-20 09:53:31 -05:00
Samuli Seppänen 82812df1a8
Merge pull request #196 from chipitsine/fix_appveyor
AppVeyor: use proper way to resolve project path
2017-11-20 10:48:22 +02:00
Samuli Seppänen d0105369b5
Merge pull request #195 from chipitsine/modernize_mingw
switch travis-ci mingw to ubuntu 16.04
2017-11-20 10:37:25 +02:00
Ilya Shipitsin 4d75ca9bd6 travis-ci: switch mingw to ubuntu 16.04 2017-11-20 10:23:31 +05:00
Ilya Shipitsin e76c69ac81 AppVeyor: use proper way to resolve project path
APPVEYOR_PROJECT_SLUG point to project path properly, when
repo is cloned, deleted and cloned again
2017-11-19 12:22:51 +05:00
Selva Nair fd0fda5480
Merge pull request #151 from chipitsine/silence_mingw
change "%S" to "%ls" to silence mingw warning

Acked-by: Selva Nair <selva.nair@gmail.com>
2017-11-18 21:58:05 -05:00
MaxXor 6fa818dcb0 Update german translation 2017-10-11 15:05:34 +02:00
Samuli Seppänen de777b8fb1 Merge pull request #184 from bubuleur/patch-1
Update of the French version of Open Vpn GUI
2017-10-07 13:53:31 +03:00
bubuleur 7c5ce7bcba Update openvpn-gui-res-fr.rc 2017-10-05 13:30:36 +02:00
Samuli Seppänen d162894d43 Merge pull request #182 from ffes/editorconfig
Add EditorConfig file
2017-09-26 15:59:31 +03:00