Commit Graph

375 Commits (7ec7ad10ed59c88f81464b0c3a8a261069732a7e)

Author SHA1 Message Date
Samuli Seppänen c77c720e12 Merge pull request #50 from chipitsine/master
cache openssl download
2016-06-22 11:14:54 +03:00
Selva Nair 5880fdcd02 Save username and optionally passwords
- Username and, optionally, password as well as the private
  key passphrase are saved in config-specific registry keys
- All saved data are kept encrypted using DPAPI
- The passphrase dialog is skipped if a valid saved private
  key password is available. However, the user-auth dialog
  is always presented, prefilled with the saved username
  and password.

Note: A text string "Save password" is added to three dialogs
in all language resource files. Additional text with ids
IDS_MENU_CLEARPASS and IDS_NFO_DELETE_PASS are added to the
STRINGTABLE only in the English language resource file.
All these need translations.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-05-29 19:35:30 -04:00
Samuli Seppänen 03c305bd4b Merge pull request #47 from selvanair/rescan-configs
Rescan configs
2016-05-25 10:02:39 +03:00
Selva Nair ef11bc2366 Merge pull request #46 from leobasilio/master
Launch on startup setting
2016-05-24 22:51:16 -04:00
Ilya Shipitsin 2df46167b5 moved "export" to env section 2016-05-25 00:46:26 +05:00
Ilya Shipitsin 809d2c5578 cache openssl download 2016-05-24 20:32:08 +05:00
Selva Nair 9fb33d0bee Fix exit handling while in modal loops
PostThreadMessage used to trigger exit event gets lost while
in modal dialog loops such as auth dialog. Replace it by PostMessage
and handle it in the status window callback.

Fixes openvpn processes left behind if exit is pressed while
user-auth dialog is active.

Changes after feedback:
- Use PostMessage correctly in SuspendOpenVPN() (error pointed
  out by leobasilio@gmail.com).

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-05-23 01:20:02 -04:00
Leonardo Basilio ece6aef6a6 Launch on startup setting 2016-05-22 22:05:42 -03:00
Selva Nair 284a4e27e3 Rescan configs even when connections are active
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-05-22 15:41:23 -04:00
Selva Nair 38541f3693 Add a missing CheckReadAccess()
Also make CheckReadAccess() easier to use without need for a temp.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2016-05-22 15:38:22 -04:00
Selva Nair fb97c3f4f1 Merge pull request #45 from chipitsine/master
fix the following "warning"
2016-05-12 22:46:56 -04:00
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