Davide Beatrici
755e09e5c1
Don't include OpenSSL headers in vpndrvinst.c
...
The inclusion of the headers is probably a very old leftover, from when OpenSSL was not encapsulated into Mayaqua yet.
In fact, there was a "HAM_C" (defined in vpndrvinst.c) definition check in Mayaqua/Encrypt.h preventing the redefinition of OpenSSL types.
2020-07-27 20:59:40 +02:00
Davide Beatrici
2cdffffa54
Merge PR #1186 : Azure Pipelines: switch from MSVC 2017 to 2019
2020-07-27 20:59:31 +02:00
Davide Beatrici
8e53b948c5
Azure Pipelines: switch from MSVC 2017 to 2019
2020-07-27 20:44:15 +02:00
Davide Beatrici
ff247687ed
Merge PR #1184 : vpntest.c: add "setupapi" command to test SetupAPI (Windows only)
2020-07-27 08:36:51 +02:00
Daiyuu Nobori
588d7539f4
vpntest.c: add "setupapi" command to test SetupAPI (Windows only)
...
Co-authored-by: Davide Beatrici <git@davidebeatrici.dev>
2020-07-27 05:31:02 +02:00
Davide Beatrici
112b4c2c67
Merge PR #1182 : CMake: specify "WIN32" for targets that have WinMain(), add manifest for all targets that have it in the MSBuild project
2020-07-25 23:26:53 +02:00
Davide Beatrici
28d4a113dc
CMake: add manifest for all targets that have it in the MSBuild project
2020-07-25 23:13:45 +02:00
Davide Beatrici
3732447571
CMake: specify "WIN32" for targets that have WinMain()
...
When "VPN_EXE" is defined, Mayaqua.h defines WinMain(), which handles arguments in a special way.
This commit passes "WIN32" to add_executable(), so that WinMain() is used as entry point instead of main().
The use of main() instead of WinMain() was causing service mode not to work due to the "/service" argument being discarded.
2020-07-25 23:13:38 +02:00
Davide Beatrici
0133682eb3
Merge PR #1180 : Azure Pipelines: add macOS build
2020-07-22 00:26:31 +02:00
Davide Beatrici
3747d2bf3f
Azure Pipelines: add macOS build
2020-07-21 23:23:29 +02:00
Davide Beatrici
3c99f64621
Merge PR #1179 : Azure Pipelines: add Windows 32 bit build, templatize Windows steps
2020-07-21 22:32:28 +02:00
Davide Beatrici
74a1e9bd1b
Azure Pipelines: add Windows 32 bit build
2020-07-21 22:01:22 +02:00
Davide Beatrici
59be67df25
Azure Pipelines: templatize Windows steps
2020-07-21 22:01:19 +02:00
Davide Beatrici
5e0c036e39
Merge PR #1178 : Azure Pipelines: use Ninja and designated build directory, naming improvement
2020-07-21 21:37:33 +02:00
Davide Beatrici
6801e4b384
Azure Pipelines: improve steps, use Ninja and designated build directory
2020-07-21 21:11:57 +02:00
Davide Beatrici
c948f65850
Azure Pipelines: remove submodules checkout step, it's in the pipeline
2020-07-21 02:46:37 +02:00
Davide Beatrici
a9b30b829f
Azure Pipelines: improve job names
...
"Ubuntu 16.04" -> "Ubuntu (x86_64)"
"Visual Studio 2017" -> "Windows (x86_64)"
2020-07-21 02:46:28 +02:00
Davide Beatrici
d074899fd8
Merge PR #1176 : CMake: don't hardcode build directories
2020-07-20 20:56:44 +02:00
Davide Beatrici
3c2f5a41ba
Use "build" folder instead of "tmp" in CI scripts
2020-07-20 20:33:36 +02:00
Davide Beatrici
369a8850c4
CMake: don't hardcode build directories
...
Our CMake project used to forcefully create and use two different build directories: "build" and "tmp".
This commit changes the behavior so that only the build directory CMake is ran in is used.
The "configure" script now runs CMake in "build" by default, instead of "tmp".
2020-07-20 18:31:41 +02:00
Davide Beatrici
7b042e53d2
Merge PR #1175 : Remove all references to strtok() and wcstok(), implement and use alternatives
2020-07-20 18:17:35 +02:00
Daiyuu Nobori
844dcdb0af
Remove all references to strtok() and wcstok(), implement and use alternatives
...
strtok() and wcstok() are considered unsafe functions.
A segmentation fault caused by the use of strtok() was recently reported.
Co-authored-by: Takuho NAKANO <takotakot@users.noreply.github.com>
2020-07-20 17:57:58 +02:00
Davide Beatrici
3baf4674e7
Merge PR #1171 : Cedar: handle SSTP through Proto, minor improvements
2020-07-17 02:43:02 +02:00
Davide Beatrici
869496be3e
Cedar: handle SSTP through Proto
2020-07-17 02:00:30 +02:00
Davide Beatrici
d917b2ac73
Cedar/Proto.c: check whether IsPacketForMe() is available before calling it
...
The SSTP implementation doesn't provide packet identification, because it's not required: the protocol is identified by the HTTP header it sends to the server.
2020-07-17 01:59:41 +02:00
Davide Beatrici
96a2d5a124
src/Cedar: pass client hostname and cipher to Init() function in PROTO_IMPL
...
The SSTP implementation must be aware of the cipher in order to be able to report it to the server's internals (i.e. IPC).
2020-07-17 01:59:22 +02:00
Davide Beatrici
3090688506
Cedar/Proto.c: support secure sockets
...
This is required for SSTP, because the connection is established through TLS/SSL.
2020-07-12 03:16:02 +02:00
Davide Beatrici
19dbdf46be
Cedar: move buffer limit handling from ProtoHandleConnection() to protocol implementation
...
This allows greater control, required by SSTP: the limit only applies to data packets.
2020-07-12 03:09:12 +02:00
Davide Beatrici
eb5150a002
Cedar: change ProtoHandleConnection() so that it supports direct protocol specification
2020-07-12 03:05:51 +02:00
Davide Beatrici
e0c6813d44
Merge PR #1170 : Cedar: fix server crash in CleanupSession()
2020-07-11 00:59:55 +02:00
Davide Beatrici
6869955acc
Cedar: fix server crash in CleanupSession()
...
"ClientOption", as the name implies, is only used in a client context.
The issue was introduced in 235bd07e67
. Before that, an unrelated check prevented UnixVLanSetState() from being called in a server context.
2020-07-11 00:32:07 +02:00
Davide Beatrici
f84513c95b
Merge PR #1164 : Cedar: fix ProtoSetUdpPorts() call in SiLoadServerCfg()
2020-07-03 17:03:10 +02:00
Davide Beatrici
45399d9797
Cedar: fix ProtoSetUdpPorts() call in SiLoadServerCfg()
...
I accidentally passed the wrong variable in 4514ba5e2f
.
2020-07-03 01:31:19 +02:00
Ilya Shipitsin
b60844e276
Merge pull request #1161 from ronisaacson/master
...
Fix three issues when building RPM packages
2020-07-01 13:00:19 +05:00
Ron Isaacson
40ed982079
Fix systemd unit file generation
2020-06-30 01:22:37 -04:00
Ron Isaacson
eeaac4e78c
When generating an RPM, attempt to exclude system directories
2020-06-29 23:11:05 -04:00
Ron Isaacson
6fe678fe84
Fix wrapper script generation
2020-06-29 23:04:35 -04:00
Ron Isaacson
853b4a57bc
Remove unnecessary CMake options
2020-06-28 16:21:12 -04:00
Davide Beatrici
275e8a81ef
Merge PR #1157 : Cedar: remove "NicDownOnDisconnect" option, force correct behavior
2020-06-28 14:45:13 +02:00
Davide Beatrici
235bd07e67
Cedar: remove "NicDownOnDisconnect" option
...
SoftEther VPN originally created the NIC in the UP state and never changed it, even when the the client was not connected.
The behavior was changed in 59e1483dbf
, which also added the NicDownOnDisconnect option
The option was disabled by default for backwards compatibility with scripts that don't check whether the NIC is down, but it's not ideal.
This commit forces the correct behavior and removes the commands "TUNDownOnDisconnectEnable", "TUNDownOnDisconnectDisable" and "TUNDownOnDisconnectGet".
2020-06-27 22:47:04 +02:00
Ilya Shipitsin
47d08b055e
Merge pull request #1114 from takotakot/disable_sslv3
...
Disable SSLv3
2020-06-18 11:21:59 +05:00
Davide Beatrici
485a5922eb
Merge PR #1146 : Cedar/Server.c: load UDP ports from configuration file and apply them
2020-06-10 10:00:10 +02:00
Davide Beatrici
4514ba5e2f
Cedar/Server.c: load UDP ports from configuration file and apply them
...
Unfortunately I realized only now that I didn't add the code in c4ec63fe32
.
2020-06-10 09:42:23 +02:00
Takuho NAKANO
5ebdb394fc
Disable sslv3
2020-06-09 13:59:57 +09:00
Davide Beatrici
2fafd7c70e
Merge PR #1134 : Fixed that NewDhcpOption can't handle DHCP options longer than 255 bytes
2020-05-22 05:39:54 +02:00
Tetsuo Sugiyama
d726719602
Fixed that NewDhcpOption did not handle DHCP options longer than 255 bytes correctly
2020-05-22 11:05:36 +09:00
Davide Beatrici
09be880263
Merge PR #1130 : Revamp UDP ports setting
2020-05-20 22:47:53 +02:00
Davide Beatrici
f7f6eeec44
.ci/start-se-openvpn.sh: use new vpncmd command to set the UDP port
2020-05-20 20:18:51 +02:00
Davide Beatrici
c4838006b1
Cedar/SM.c: move UDP ports setting outside of the OpenVPN/SSTP dialog
...
This commit moves the UDP ports setting right below the TCP listeners and uses the new RPC methods to get and set them.
2020-05-20 20:18:51 +02:00
Davide Beatrici
c52e49de2d
Cedar/SM: replace SmStrToPortList() with StrToPortList()
...
The function only called StrToPortList(), thus it can safely be replaced with the upstream function.
2020-05-20 20:18:51 +02:00