Commit Graph

837 Commits (583e48b148ac19037e53a542fb21548ee685a9f0)

Author SHA1 Message Date
Frank Lichtenheld 583e48b148 Bump version to 11.47.0.0
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2024-02-12 13:46:14 +01:00
Selva Nair 579a418fb7 Always update tray icon on state change
The tray icon and its tip text get updated to the connecting state when starting
a new status window thread. This is not enough for persistent connections as these
can be restarted from the hold state which does not go through a new thread creation.

To see the bug, disconnect and reconnect a persistent connection and have it wait in the
connecting state. The tray icon colour does not change to yellow and the tray tip message
does not show the "Connecting to:" text.

Fix by ensuring that  CheckAndSetTrayIcon() or SetTrayIcon() gets called whenever a state
change message is received.

Fixes issue #668

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2024-02-11 10:23:03 +01:00
Yuriy Darnobyt 813916ede5 Bump version to 11.46.0.0
Signed-off-by: Yuriy Darnobyt <yura.darnobyt@openvpn.net>
2023-11-17 12:31:49 +02:00
Yuriy Darnobyt e8f9fa58af Bump version to 11.45.0.0
Signed-off-by: Yuriy Darnobyt <yura.darnobyt@openvpn.net>
2023-11-08 18:05:38 +02:00
Sam Gregg 59c449cf99
Add clarity for error on missing management paramater. (#657)
Configuration files located in config-auto require a management parameter to be declared.
2023-10-09 21:35:07 -04:00
Lev Stipakov 7de26e65af
BUILD.rst: update presets names (#652)
Signed-off-by: Lev Stipakov <lev@openvpn.net>
2023-09-13 08:21:13 -04:00
Lev Stipakov a02ccb5bff Send the whole version in IV_GUI_VER
Current IV_GUI_VER is always 11 which is not very helpful.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2023-09-07 10:26:37 +02:00
Lev Stipakov 8b42ea8761 CMake: remove "if (MSVC)"
MSVC is the only generator we use for CMake.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2023-09-04 14:20:27 +02:00
Lev Stipakov 441280a8ff CMake: add ASAN build configuration
Add ASAN build configuration, based on debug with ASAN
enabled. This might help finding crashes like in
https://github.com/OpenVPN/openvpn-gui/issues/548

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2023-09-04 14:20:27 +02:00
Lev Stipakov ab3c42b75e CMake: remove CMAKE_BUILD_TYPE from configure presets
Since we use Visual Studio as generator, CMAKE_BUILD_TYPE doesn't make
sense, since configuration (release/debug) is specified on build step,
not configure step.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2023-09-04 14:20:27 +02:00
Lev Stipakov 72a4bb84bf
Improve "OpenVPN GUI" tooltip handling (#649)
There is no point in localizing "OpenVPN GUI"
tray icon tooltip. Remove it from resources and
replace with PACKAGE_NAME define.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2023-08-31 11:13:13 -04:00
Frank Lichtenheld d2473c4984 Bump version to 11.44.0.0
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-08-15 10:27:47 +02:00
Selva Nair 5ff7c417b1 Remove obsolete options from help text
All these options are currently ignored while
parsing the command line.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-08-02 10:36:44 +03:00
bubuleur 3aeed141b3
Update openvpn-gui-res-fr.rc (#642)
* Update openvpn-gui-res-fr.rc

Hello
attached the update of the French translation of OpenVPN how to see if my translation is good?
Thanks
2023-08-01 20:21:05 -04:00
Frank Lichtenheld be7c684868 GHA: add uncrustify formatting check
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-07-14 11:12:16 +02:00
Frank Lichtenheld 2cb3c6e417 Reformat source code with uncrustify
Closes: #445

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-07-14 11:12:16 +02:00
Frank Lichtenheld f2aad3a879 dev-tools: Copy from openvpn to add formatting support here
All unchanged except for special-files.lst which has been
emptied.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-07-14 11:12:16 +02:00
Frank Lichtenheld b34aca9dc1 BUILD.rst: document which components of MSVC we install
Since this is what we use on our build machines, it should
be enough.

Closes: #624

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-07-10 11:38:26 +02:00
Frank Lichtenheld 951e7fca8b BUILD.rst: remove "How to build using openvpn-build"
Obsolete. openvpn-build uses CMake build nowadays.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-07-10 11:38:26 +02:00
Frank Lichtenheld 7f6e8b7b6d GHA: Update run-vcpkg to v11
Switches to vcpkg-caching instead of directory caching.
While here, don't explicitely export VCPKG_ROOT.
run-vcpkg already takes care of that.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-06-28 13:14:02 +03:00
Frank Lichtenheld 3b283d470b GHA: update checkout and cache actions to v3
Avoids warnings because of deprecated Node.js version.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-06-28 13:14:02 +03:00
Selva Nair 9e1b57404e Update CHANGES.rst for version 11.43.0
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-06-20 08:43:56 -04:00
Frank Lichtenheld e6c7f397dc Bump version to 11.43.0.0
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-06-13 12:39:20 +02:00
Lev Stipakov 2ab79c9721 CMakeLists.txt: generate PDB for release builds
Signed-off-by: Lev Stipakov <lev@openvpn.net>
2023-05-25 18:43:44 +03:00
Frank Lichtenheld 4921b1e544 Bump version to 11.42.0.0
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-04-26 14:21:54 +02:00
Lev Stipakov 8cdffbe817 Add transparency to eye icons
Signed-off-by: Lev Stipakov <lev@openvpn.net>
2023-04-26 13:23:50 +02:00
Selva Nair 641f880b1f fixup! Implement Password Reveal Feature
Moved the central circle by 1/2 pixel to make the image symmetric
2023-04-26 11:08:15 +03:00
Selva Nair 14c7a69c79 fixup! Password-reveal: Respect group policy setting, if any
- Minor edit in registry.c
2023-04-26 11:08:15 +03:00
Selva Nair fa1191b799 Password-reveal: Copy dialog resource changes to all languages
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-04-26 11:08:15 +03:00
Selva Nair 982e1a4319 Password-reveal: Respect group policy setting, if any
- The policy setting is checked when GUI is started. Any change
  in policy will be effective only after restarting the GUI.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-04-26 11:08:15 +03:00
Selva Nair 9186648285 Implement Password Reveal Feature
- Only "hot" user input -- i.e, freshly typed password starting
  from an empty string, with keyboard focus still in the edit
  box -- can be revealed.
  In particular, prefilled passwod (from cached value) cannot be
  revealed.
- Once keyboard focus moves out of the password edit box, the inpit has
  to be deleted for the reveal feature to get re-enabled.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-04-26 11:08:15 +03:00
Lev Stipakov d24495bd74
Merge pull request #621 from lstipakov/fix_man_delay
Bring back delay before management is ready
2023-04-18 08:13:49 +03:00
Lev Stipakov fcfad50543 Bring back delay before management is ready
Commit 2b1e586

"Replace Sleep by a Wait function that pumps messages"

replaced Sleep() with a wait function which also processes messages.
However WM_MANAGEMENT message in some cases requires actual delay to be
processed. To achieve that, bring back original Sleep().

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2023-04-17 21:41:16 +03:00
Frank Lichtenheld 18a499e481 Bump version to 11.41.0.0
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-04-13 12:42:51 +02:00
Frank Lichtenheld ec90109cd2 Makefile.am: fix make dist
Fixup for commit 0bea5549f1

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-04-13 12:39:16 +02:00
Frank Lichtenheld e755c42627 Bump version to 11.40.0.0
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-04-13 12:33:26 +02:00
Selva Nair 141a7adaca Add missing copyright header in save_pass.[ch]
- This was missed in 2016 when these files were added

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-03-27 07:50:21 -07:00
Selva Nair 0bea5549f1 Remove private key password-change feature
- With this, dependence on OpenSSL is also gone. CI build
  tasks are updated accordingly.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-03-27 07:50:21 -07:00
Selva Nair 7d23e63411 Update CHANGES.rst for 11.39.0
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-03-26 17:03:16 -07:00
Frank Lichtenheld 8634f03207 Bump version to 11.39.0.0
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-03-24 14:10:22 +01:00
Selva Nair c51a37c2ff Do not remove tray icon when WM_OVPN_STOPALL is processed
- commit f8a243fbe introduced removing the tray icon during
  the wait for exit to avoid further user interaction. This
  is done in StopAllOpenVPN(). However, this function is also
  reused for processing WM_OVPN_STOPALL message received from
  a second instance via --comamnd disconnect_all. In this case
  the tray icon should not be removed as we are not exiting.

Fixes issue #607

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-03-13 05:55:02 -07:00
Selva Nair 4803c7ad08 Update CHANGES.rst for 11.38
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-03-13 05:55:02 -07:00
Frank Lichtenheld 326b078e80 Bump version to 11.38.0.0
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-03-08 16:22:04 +01:00
Selva Nair 7cc3ccda84 End open dialogs on state change
Modal dialogs opened within the connection thread may
hang around if the connection restarts. Intercept the state
change message and call EndDialog when that happens.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-02-26 19:59:38 -08:00
Selva Nair f8a243fbe8 Remove tray icon during exit processing
During the wait for threads to exit,  we no longer sleep, but
continue pumping messages. Disable the tray icon during this
period to not allow user interaction with the main menu.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-02-26 19:59:38 -08:00
Selva Nair ecf9998652 Use CloseHandleEx in script.c
- log_handle was not getting closed always.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-02-26 19:59:38 -08:00
Selva Nair 2b1e5867f0 Replace Sleep by a Wait function that pumps messages
- The wait function optionally calls IsDialogMessage() if a dialog
  handle is specified. For other customizations the caller can
  install a WH_MSGFILTER hook. The hook will get called with
  nCode = MSGF_OVPN_WAIT and lParam = &msg.

- Use this in place of Sleep in main.c, scripts.c and PLAP dll.

Fixes #576

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-02-26 19:59:38 -08:00
Selva Nair 141a687ddd Set status window as the owner of modal dialogs in same thread
For all dialogs in a thread, set its status window in the same
thread as the owner.

Also set the owner of message boxes appropriately instead of
using NULL. This has the side effect of some of the modal message
popups blocking access to the status Window until dismissed.

Next:
Replace Sleep by a wait that pumps messages.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-02-26 19:59:38 -08:00
Selva Nair a8771e94a2 Delete an extraneous backslash in the resource file for Russian
- Fixes: res/openvpn-gui-res-ru.rc:414: unrecognized escape sequence

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-02-23 08:04:06 -08:00
Selva Nair 9a1e6b08c6 Scroll log window after appending text
- Automatic scroll sometimes does not appear to work as expected.
  Add an explicit command to scroll to current selection.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-02-23 08:04:06 -08:00