Commit Graph

864 Commits (57f9cad58a5629fb03005ae3c42c9db548d1be1b)

Author SHA1 Message Date
Ilya Shipitsin 727eaee0c5 fix the following "warning"
x86_64-w64-mingw32-windres: warning: 5: 230: 1033: duplicate value
2016-05-12 14:34:09 +06:00
Samuli Seppänen 2dd468d23c Merge pull request #28 from selvanair/service-io
Read errors from the service pipe and handle fatal ones
2016-05-09 09:39:26 +03:00
Selva Nair 854d76ae31 Read errors from the service pipe and handle fatal ones
Asynchronously read Input on the service pipe which are mostly
errors reported by the service. Display the errors on the status log
window and to the log file if its not opened by openvpn.
If/when openvpn fails to start or exits with error, close
the connection without waiting for management socket timeout.

v2:
- rebase to master
- fix a bug in setting manage.connected state
- ensure management socket is closed and resources freed before thread exit

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-05-08 18:07:31 -04:00
Samuli Seppänen 2175aee489 Merge pull request #44 from ffes/fix-maintainer-clean
File 'compile' now removed as well
2016-05-06 10:38:24 +03:00
Samuli Seppänen 81e67d1ffd Merge pull request #43 from ffes/how-to-build-on-cygwin
Add build description
2016-05-06 10:34:29 +03:00
Frank Fesevur d868a95f3c Add build description
At the moment only building on Cygwin is described. Other way to
build the project can be added in a later stage.
2016-05-04 16:22:06 +02:00
Frank Fesevur 055ca53dd5 File 'compile' now removed as well
When using `make maintainer-clean` the file 'compile'
was not removed.
2016-05-04 16:15:54 +02:00
Samuli Seppänen ee62081c51 Merge pull request #42 from chipitsine/master
reworked packages install to "apt" plugin
2016-05-02 10:06:03 +03:00
Ilya Shipitsin f8e01fe2fa reworked packages install to "apt" plugin 2016-05-01 18:37:06 +05:00
Selva Nair 0e49c389e7 Merge pull request #41 from chipitsine/master
added cppcheck, openssl-1.0.1r
2016-04-29 22:10:18 -04:00
Ilya Shipitsin 24df0cc06e removed irc notification 2016-04-29 22:24:09 +05:00
Ilya Shipitsin 6908426a4b aadded cppcheck, irc notifications, openssl-1.0.1r 2016-04-24 17:52:22 +06:00
Selva Nair 10a1bfda5d Merge pull request #38 from EagleErwin/master
Changed typo in include guard.
2016-04-21 00:03:34 -04:00
Erwin Bronkhorst 267569888a Changed typo in include guard. 2016-04-20 00:25:32 +02:00
Samuli Seppänen 72818bbf8e Merge pull request #33 from selvanair/bugfix
Some small bug fixes
2016-04-12 17:07:12 +03:00
Selva Nair 5adc5beb89 Merge pull request #36 from ffes/fix-typos
Fix typos and reword on some texts
2016-04-10 14:03:28 -04:00
Selva Nair bd2d80c1cc Check the return value of CheckTokenMembership()
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-04-10 01:57:25 -04:00
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