Commit Graph

348 Commits (2f2ddbf3a88beeaa7c54e4fad13575f585ce5b26)

Author SHA1 Message Date
Selva Nair 2f2ddbf3a8 Load icons at sizes given by DPI-dependent system metric
- Check system metric for large and small icon sizes and
  try to load the correct size instaed of scaling from one size.

Scaling will still happen if the required size is not available
in the icon resource. As we add more icon sizes they will
get automatically used as needed.

LoadImage scales up from next smallest size available. Revisit this
when LoadIconWithScaleDown (Vista+) becomes available in mingw.

Resolves Trac: #772 (icon scaling issue)

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-12-08 16:01:58 -05:00
aixxe 270ea5f160 Add 24x24 and 20x20 versions of each icon.
Signed-off-by: aixxe <me@aixxe.net>
2016-12-06 10:12:40 +00:00
Samuli Seppänen be8a9ae423 Merge pull request #102 from mattock/master
Preparing for release with openvpn-2.4_rc1
2016-12-02 10:24:55 +02:00
Samuli Seppänen 3439d001cc Preparing for release with openvpn-2.4_rc1
Bump version to 11.3.0.0

Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
2016-12-02 08:37:42 +02:00
Samuli Seppänen 8020ee1071 Merge pull request #91 from selvanair/pkcs11-pin-v3
pkcs11 pin prompt
2016-11-30 22:18:34 +02:00
Samuli Seppänen 8f57172c2d Merge pull request #99 from selvanair/dpi-aware
Make the program DPI aware
2016-11-30 08:34:01 +02:00
Selva Nair 5f18ede108 Merge pull request #100 from selvanair/about-update
Copy updated copyright to language files
2016-11-30 01:13:11 -05:00
Selva Nair 6ce96ee3ae Rendering/Positioning fix
- Adjust widget positioning for text to render without
  clipping. Several language resource files affected.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-11-27 21:40:20 -05:00
Selva Nair 7033d5c1aa Copy updated copyright to language files
- Copy updates to copyright by commit 32c31ab942 in
  Englishc to all other language files.
- Change version displayed in About page to the form
  "a.b.c.d"
- General settings dialog is incomplete in chinese:
  copy from English version.

- Add the word "OpenVPN" in the About page of Norwegian
  mistakenly removed by commit d81b93d487..

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-11-27 20:41:08 -05:00
Selva Nair 6c9d8f6ed7 Merge pull request #85 from stigok/patch-1
Update Norwegian translation

Acked-by: David Sommerseth <davids@openvpn.net>
2016-11-27 18:55:24 -05:00
Stig Otnes Kolstad d81b93d487 Update Norwegian translations 2016-11-27 23:33:16 +01:00
Samuli Seppänen 10951c6160 Merge pull request #94 from zhovner/master
Fix Ukrainian localization
2016-11-25 20:11:01 +02:00
Samuli Seppänen df3679f4c9 Preparing for release with openvpn-2.4_beta2
- Bump version to 11.2.0.0

Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
2016-11-25 09:27:16 +02:00
Samuli Seppänen e7ff5a4c13 Merge pull request #93 from ValdikSS/russian-fixes
Russian translation updates
2016-11-21 17:39:39 +02:00
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