Commit Graph

847 Commits (f20062edd5e4d435ac966a1eed913e63c98df1b3)

Author SHA1 Message Date
Frank Fesevur aba703fa8e Fix typos and reword on some texts 2016-04-09 22:45:13 +02:00
Samuli Seppänen dc37c5fd58 Merge pull request #34 from ffes/nl-2016-04
Add all missing texts and translate them.
2016-04-08 17:25:45 +03:00
Frank Fesevur 749c9a5293 Add all missing texts and translate them.
As mentioned in #30 some text where still missing. This adds
all those texts and adds the texts that were added by #26 as well.
2016-04-07 21:43:05 +02:00
Samuli Seppänen cc1b676524 Merge pull request #26 from selvanair/iservice-restrictions
handle iservice policy restrictions
2016-04-04 10:42:57 +03:00
Selva Nair 6d9ab8122c Ensure group name in shell-execute cmdline is clean
- Also fix typo in a comment.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-04-03 21:03:33 -04:00
Selva Nair 875d9f9457 Handle empty strings in Base64Encode
- Encode empty string to empty string
- If Base64Encode returns null do not pass it to snprintf
- Use the actual length of encoded string

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-04-03 20:28:56 -04:00
Selva Nair ef9a195406 Ensure strings read from registry are null terminated
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-03-30 21:15:12 -04:00
Selva Nair 4c8d5eaff0 Fix wrongly used o.conn[config] in place of current config c
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-03-25 17:46:42 -04:00
Selva Nair c8ddab1f90 Add InitSemaphore() to misc.h 2016-03-23 00:11:15 -04:00
Selva Nair 1df1b62f4b Merge pull request #30 from ffes/nl-2016-03
Improve many Dutch translations
2016-03-22 23:25:12 -04:00
Selva Nair dfa1edfe69 Merge pull request #29 from aixxe/master
Update tray icons to modern Windows style.
2016-03-22 23:21:24 -04:00
aixxe 06c24ad770 Merge remote-tracking branch 'remotes/aixxe/icons-win8' 2016-03-22 16:58:43 +00:00
aixxe 2f1892fb8e Added 32x32 versions of each icon. 2016-03-22 16:30:33 +00:00
aixxe 177b5fc5dd Add Windows 8 styled system tray icons. 2016-03-22 12:08:35 +00:00
Selva Nair 1df418e1b0 Merge pull request #31 from leobasilio/master
Improving PT translation
2016-03-21 11:41:08 -04:00
Selva Nair e14764dd7b Merge pull request #32 from Chocobo1/patch
Fix potential out-of-bounds access
2016-03-21 11:08:51 -04:00
Chocobo1 8eac50fadd Fix potential out-of-bounds access 2016-03-20 19:04:03 +08:00
Leonardo Basilio bdb0350398 Improving PT translation 2016-03-17 13:14:55 -03:00
Frank Fesevur e4126de781 Improve many Dutch translations 2016-03-16 14:56:30 +01:00
Selva Nair 43d0ef3a5a Handle interactive service policy restrictions
When a connection is attempted using a config in a location
that would fail, offer an option to add the user to the "OpenVPN
Administrators" group. This is done using shell-execute which will
show a UAC prompt for elevation. If it fails (due to user chooses
NO or the UAC dialog fails) the connection is not started.

v2 Changes
 - Rebase to master
 - Automaticlaly add the admin group if it doesn't exist
 - Allow unicode strings in debug output
 - Use domain\username to identify user
 - Fix the PrintDebug macro

Minor changes based on user feedback
 - Bring the window back to foreground after UAC prompt completion
 - Show a message if another connection is tried during authorization
 - Do not add user to ovpn_admin_group if it is same as the built-in admin group

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-03-13 20:23:20 -04:00
Samuli Seppänen f1ce93e5d5 Merge pull request #18 from selvanair/user-config-dir
Support user and global config directories
2016-03-08 11:22:29 +02:00
Samuli Seppänen 5084fb104f Merge pull request #21 from selvanair/revert-2af86368
Revert "Run with highest privilege available"
2016-03-03 13:48:14 +02:00
Selva Nair 77538dd0d0 Support user and global config directories
- Set default config directory (config_dir) to %UserProfile%\OpenVPN\config
  (saved and read back from HKCU\Software\OpenVPN-GUI\config_dir)

- Add a global_config_dir variable read from HKLM\Software\OpenVPN\config_dir
  or set to OpenVPN-install-path\config

- Scan both directories and their sub directories for connection profiles.
  In case of name conflicts config_dir gets priority over global_config_dir

- Eliminate multiple warnings of duplicate configs

Fixed on review (Thanks to leobasilio@gmail.com)

- Fix wrongly used o.config_dir in 2 locations
- Unrelated: Added missing  CheckIServiceStatus to service.h

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-03-01 15:50:02 -05:00
Selva Nair 686a4d5d8c Revert "Run with highest privilege available"
This reverts commit 2af8636896.

Requiring "highestAvalable" privilege is no longer required,
nor advisable, as the same functionality is provided using
the interactive service with the GUI running with limited rights.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-02-29 10:42:03 -05:00
Samuli Seppänen 7f73bcca0b Merge pull request #20 from soarqin/master
Adding static-challenge support
2016-02-29 12:14:42 +02:00
Samuli Seppänen 3227369371 Merge pull request #19 from mattock/master
Bump version in "master" branch to 11
2016-02-29 10:23:14 +02:00
Soar Qin fe5a1c9b71 Adding static-challenge support 2016-02-27 13:51:13 +08:00
Samuli Seppänen fbb5348540 Bump version in "master" branch to 11
URL: https://github.com/OpenVPN/openvpn-gui/pull/16

Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
2016-02-22 10:50:11 +02:00
Samuli Seppänen c3e2584674 Merge pull request #17 from leobasilio/master
Add "Import file" menu option
2016-02-22 10:13:29 +02:00
Samuli Seppänen 49746f2995 Merge pull request #16 from selvanair/error-messages
Better error reporting when connection fails to come up
2016-02-22 10:13:01 +02:00
Samuli Seppänen f415fe8c83 Merge pull request #15 from selvanair/make-log-first-option
Put --log first in the command line
2016-02-22 10:06:37 +02:00
Leonardo Basilio b47d3545e4 Improving feedback messages when importing 2016-02-21 12:15:40 -03:00
Leonardo Basilio 4c429d0b6b Fixes following pull request discussion
* Proper filter string size
* Copy config to subdirectory
2016-02-18 14:03:02 -02:00
Selva Nair 5ce1298452 Warn if interative service is not installed or not running
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-02-16 20:09:20 -05:00
Leonardo Basilio 01051c51be Make sure full config path exists before importing file 2016-02-16 22:50:20 -02:00
Leonardo Basilio 46a1bc715c Adding "Import file" feature 2016-02-16 22:23:23 -02:00
Leonardo Basilio d0c37ecbcc Updating README build instructions 2016-02-16 22:19:52 -02:00
Selva Nair 352e44f03d Better error reporting when connection fails to come up
- Handle early errors (openvpn exits before management connection is up)
    with a helpful error message that points the user to view log.
- Include only readable config files in the connection list
- Warn if no connection profiles found

TODO: handle startup errors from interactive service
2016-02-16 15:57:37 -05:00
Samuli Seppänen f18e3efca7 Merge pull request #13 from selvanair/registry-and-admin
Registry and admin
2016-02-16 10:25:07 +02:00
Selva Nair cdec68ef91 Put --log first in the command line
This is needed to avoid early messages going to stdout leaving no
trace of errors when openvpn exits before management interface is up.
It also ensures that any --log directives in the config do not override
the log file location.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-02-15 11:58:45 -05:00
Selva Nair 09334e71a0 Fix the path of notepad.exe
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-02-15 11:09:45 -05:00
Selva Nair 4437ce7a8c Change default log file location to a OpenVPN/log in user's profile directory
Change the default log file location to OpenVPN/log in user's profile directory
to support running without admin privileges using the interactive service.
The registry keys are moved to HKCU from HKLM to allow for user-specific
settings as well as to avoid the need for running the GUI as admin at the
first instance.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-02-15 11:09:45 -05:00
Selva Nair 791aea49e6 Do not use interactive service if running as admin
Connecting to a named pipe server while running with admin rights is not
secure in some windows versions. As the interactive service is not required
to set routes while running as admin, this looks like a safe compromise.

Fix based on feedback from Heiko Hund
- Move IsUserAdmin() check before opening the service pipe

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-02-15 11:07:29 -05:00
Samuli Seppänen de6e411abd Merge pull request #14 from chipitsine/master
no need for CBUILD variable (it is the same in both cases)
2016-02-08 09:59:07 +02:00
Ilya Shipitsin 19f4d65bb8 .travis.yml cleanup 2016-02-08 01:39:38 +05:00
Samuli Seppänen 80ed8b71f8 Bump version to 10
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
2016-02-03 16:05:45 +02:00
Samuli Seppänen 071c8b6b2f Merge pull request #12 from chipitsine/master
travis-ci support
2016-01-18 14:33:25 +02:00
Ilya Shipitsin dbeb759212 initial travis-ci commit 2016-01-18 01:16:42 +05:00
Samuli Seppänen be9c54a592 Merge pull request #6 from selvanair/highest-priv
Run with highest privilege available
2016-01-04 12:06:03 +02:00
Samuli Seppänen 0cea17f7f8 Merge pull request #10 from chipitsine/master
configure.ac: http://openvpn-gui.sf.net --> https://github.com/openvp
2016-01-04 09:32:26 +02:00