mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-03-09 17:59:19 +03:00
Compare commits
20 Commits
5.02.5187
...
9405b909bb
| Author | SHA1 | Date | |
|---|---|---|---|
| 9405b909bb | |||
| 10a2806f12 | |||
| 2628ac1884 | |||
| 972256c578 | |||
| e2e8193495 | |||
| 71b6aa7a8c | |||
| 8be6d756b8 | |||
| a6c5f0d135 | |||
| c2487c6b2e | |||
| 817214da1f | |||
| 015f93f7b7 | |||
| cdd3bddcc6 | |||
| 0a1f0913d9 | |||
| 18cbd4627a | |||
| e475d70c0b | |||
| e94240d9a0 | |||
| 023eb3465d | |||
| 27d233a522 | |||
| 128fefc63e | |||
| 3a25c6bf73 |
@ -13,10 +13,10 @@ FreeBSD_task:
|
|||||||
freebsd_instance:
|
freebsd_instance:
|
||||||
image_family: freebsd-14-0
|
image_family: freebsd-14-0
|
||||||
prepare_script:
|
prepare_script:
|
||||||
- pkg install -y pkgconf cmake git libsodium $SSL
|
- pkg install -y pkgconf cmake git libsodium cpu_features $SSL
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
configure_script:
|
configure_script:
|
||||||
- ./configure
|
- CMAKE_FLAGS="-DUSE_SYSTEM_CPU_FEATURES=1" CFLAGS="-I/usr/local/include/cpu_features" ./configure
|
||||||
build_script:
|
build_script:
|
||||||
- make -j $(sysctl -n hw.ncpu || echo 4) -C build
|
- make -j $(sysctl -n hw.ncpu || echo 4) -C build
|
||||||
test_script:
|
test_script:
|
||||||
|
|||||||
7
.github/workflows/linux.yml
vendored
7
.github/workflows/linux.yml
vendored
@ -26,6 +26,13 @@ jobs:
|
|||||||
cd build
|
cd build
|
||||||
cpack -C Release -G DEB
|
cpack -C Release -G DEB
|
||||||
|
|
||||||
|
- name: Upload DEB packages as artifacts
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: deb-packages
|
||||||
|
path: build/*.deb
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
.ci/appveyor-deb-install-test.sh
|
.ci/appveyor-deb-install-test.sh
|
||||||
|
|||||||
2
.github/workflows/macos.yml
vendored
2
.github/workflows/macos.yml
vendored
@ -7,7 +7,7 @@ jobs:
|
|||||||
build_and_test:
|
build_and_test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-14, macos-13, macos-12]
|
os: [macos-15, macos-14, macos-13]
|
||||||
name: ${{ matrix.os }}
|
name: ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net7.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
|||||||
@ -127,6 +127,9 @@ if(UNIX)
|
|||||||
if(SE_PIDDIR)
|
if(SE_PIDDIR)
|
||||||
add_definitions(-DSE_PIDDIR="${SE_PIDDIR}")
|
add_definitions(-DSE_PIDDIR="${SE_PIDDIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Use system libraries instead of bundled
|
||||||
|
set(USE_SYSTEM_CPU_FEATURES false CACHE BOOL "Use system cpu_features")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Cedar communication module
|
# Cedar communication module
|
||||||
|
|||||||
2
src/Mayaqua/3rdparty/cpu_features
vendored
2
src/Mayaqua/3rdparty/cpu_features
vendored
Submodule src/Mayaqua/3rdparty/cpu_features updated: 26133d3b62...ba4bffa86c
2
src/Mayaqua/3rdparty/liboqs
vendored
2
src/Mayaqua/3rdparty/liboqs
vendored
Submodule src/Mayaqua/3rdparty/liboqs updated: 51ddd33cc0...f4b96220e4
2
src/Mayaqua/3rdparty/oqs-provider
vendored
2
src/Mayaqua/3rdparty/oqs-provider
vendored
Submodule src/Mayaqua/3rdparty/oqs-provider updated: 8f37521d5e...ec1e8431f9
@ -109,8 +109,21 @@ if(UNIX)
|
|||||||
$<$<BOOL:${LIB_RT}>:${LIB_RT}>
|
$<$<BOOL:${LIB_RT}>:${LIB_RT}>
|
||||||
)
|
)
|
||||||
|
|
||||||
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(armv7l|aarch64|s390x)$" OR NOT HAVE_SYS_AUXV OR SKIP_CPU_FEATURES)
|
if (NOT HAVE_SYS_AUXV OR SKIP_CPU_FEATURES)
|
||||||
add_definitions(-DSKIP_CPU_FEATURES)
|
add_definitions(-DSKIP_CPU_FEATURES)
|
||||||
|
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^(amd64|i386)")
|
||||||
|
message("cpu_features is not available on FreeBSD/${CMAKE_SYSTEM_PROCESSOR}")
|
||||||
|
add_definitions(-DSKIP_CPU_FEATURES)
|
||||||
|
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" AND NOT CMAKE_SYSTEM_NAME MATCHES "^(arm64|x86_64)")
|
||||||
|
# macOS runs only on Intel or ARM architecrues, should not reach here
|
||||||
|
add_definitions(-DSKIP_CPU_FEATURES)
|
||||||
|
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS" OR ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
|
||||||
|
message("cpu_features is not available on ${CMAKE_SYSTEM_NAME}")
|
||||||
|
add_definitions(-DSKIP_CPU_FEATURES)
|
||||||
|
elseif(USE_SYSTEM_CPU_FEATURES)
|
||||||
|
CHECK_INCLUDE_FILE(cpu_features_macros.h HAVE_CPU_FEATURES)
|
||||||
|
message("-- Using system's cpu_features")
|
||||||
|
target_link_libraries(mayaqua PRIVATE cpu_features)
|
||||||
else()
|
else()
|
||||||
add_subdirectory(3rdparty/cpu_features)
|
add_subdirectory(3rdparty/cpu_features)
|
||||||
set_property(TARGET cpu_features PROPERTY POSITION_INDEPENDENT_CODE ON)
|
set_property(TARGET cpu_features PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||||
|
|||||||
@ -4259,7 +4259,7 @@ UINT MsService(char *name, SERVICE_FUNCTION *start, SERVICE_FUNCTION *stop, UINT
|
|||||||
|
|
||||||
if ((mode == SVC_MODE_INSTALL || mode == SVC_MODE_UNINSTALL || mode == SVC_MODE_START ||
|
if ((mode == SVC_MODE_INSTALL || mode == SVC_MODE_UNINSTALL || mode == SVC_MODE_START ||
|
||||||
mode == SVC_MODE_STOP || mode == SVC_MODE_SERVICE) &&
|
mode == SVC_MODE_STOP || mode == SVC_MODE_SERVICE) &&
|
||||||
(ms->IsNt == false))
|
(IsNt() == false))
|
||||||
{
|
{
|
||||||
// Tried to use the command for the NT in non-WindowsNT system
|
// Tried to use the command for the NT in non-WindowsNT system
|
||||||
MsgBox(NULL, MB_ICONSTOP, _UU("SVC_NT_ONLY"));
|
MsgBox(NULL, MB_ICONSTOP, _UU("SVC_NT_ONLY"));
|
||||||
|
|||||||
@ -170,7 +170,6 @@ typedef struct MS
|
|||||||
{
|
{
|
||||||
HINSTANCE hInst;
|
HINSTANCE hInst;
|
||||||
HINSTANCE hKernel32;
|
HINSTANCE hKernel32;
|
||||||
bool IsNt;
|
|
||||||
bool IsAdmin;
|
bool IsAdmin;
|
||||||
HANDLE hCurrentProcess;
|
HANDLE hCurrentProcess;
|
||||||
UINT CurrentProcessId;
|
UINT CurrentProcessId;
|
||||||
|
|||||||
@ -60,7 +60,7 @@ struct DYN_VALUE
|
|||||||
#define DEFAULT_CIPHER_LIST "ECDHE+AESGCM:ECDHE+CHACHA20:DHE+AESGCM:DHE+CHACHA20:ECDHE+AES256:DHE+AES256:RSA+AES"
|
#define DEFAULT_CIPHER_LIST "ECDHE+AESGCM:ECDHE+CHACHA20:DHE+AESGCM:DHE+CHACHA20:ECDHE+AES256:DHE+AES256:RSA+AES"
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||||
#define PQ_GROUP_LIST "p521_kyber1024:x25519_kyber768:P-521:X25519:P-256"
|
#define PQ_GROUP_LIST "X25519MLKEM768:p521_kyber1024:x25519_kyber768:P-521:X25519:P-256"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// SSL logging function
|
// SSL logging function
|
||||||
|
|||||||
0
src/Mayaqua/Unix.c
Executable file → Normal file
0
src/Mayaqua/Unix.c
Executable file → Normal file
@ -6,7 +6,9 @@
|
|||||||
// VPN Command Line Management Utility
|
// VPN Command Line Management Utility
|
||||||
|
|
||||||
#include "Cedar/Cedar.h"
|
#include "Cedar/Cedar.h"
|
||||||
|
#ifdef OS_WIN32
|
||||||
|
#include "Cedar/CMInner.h"
|
||||||
|
#endif
|
||||||
#include "Cedar/Command.h"
|
#include "Cedar/Command.h"
|
||||||
|
|
||||||
#include "Mayaqua/Internat.h"
|
#include "Mayaqua/Internat.h"
|
||||||
@ -39,6 +41,10 @@ int main(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
InitCedar();
|
InitCedar();
|
||||||
|
|
||||||
|
#ifdef OS_WIN32
|
||||||
|
CmExecUiHelperMain();
|
||||||
|
#endif
|
||||||
|
|
||||||
s = GetCommandLineUniStr();
|
s = GetCommandLineUniStr();
|
||||||
|
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
|
|||||||
@ -4,11 +4,8 @@ After=network.target auditd.service
|
|||||||
ConditionPathExists=!@DIR@/softether/vpnbridge/do_not_run
|
ConditionPathExists=!@DIR@/softether/vpnbridge/do_not_run
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=exec
|
||||||
EnvironmentFile=-@DIR@/softether/vpnbridge
|
ExecStart=@DIR@/softether/vpnbridge/vpnbridge execsvc
|
||||||
ExecStart=@DIR@/softether/vpnbridge/vpnbridge start
|
|
||||||
ExecStop=@DIR@/softether/vpnbridge/vpnbridge stop
|
|
||||||
KillMode=process
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
# Hardening
|
# Hardening
|
||||||
|
|||||||
@ -4,11 +4,8 @@ After=network.target auditd.service
|
|||||||
ConditionPathExists=!@DIR@/softether/vpnclient/do_not_run
|
ConditionPathExists=!@DIR@/softether/vpnclient/do_not_run
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=exec
|
||||||
EnvironmentFile=-@DIR@/softether/vpnclient
|
ExecStart=@DIR@/softether/vpnclient/vpnclient execsvc
|
||||||
ExecStart=@DIR@/softether/vpnclient/vpnclient start
|
|
||||||
ExecStop=@DIR@/softether/vpnclient/vpnclient stop
|
|
||||||
KillMode=process
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
# Hardening
|
# Hardening
|
||||||
|
|||||||
@ -4,12 +4,9 @@ After=network.target auditd.service
|
|||||||
ConditionPathExists=!@DIR@/softether/vpnserver/do_not_run
|
ConditionPathExists=!@DIR@/softether/vpnserver/do_not_run
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=exec
|
||||||
TasksMax=infinity
|
TasksMax=infinity
|
||||||
EnvironmentFile=-@DIR@/softether/vpnserver
|
ExecStart=@DIR@/softether/vpnserver/vpnserver execsvc
|
||||||
ExecStart=@DIR@/softether/vpnserver/vpnserver start
|
|
||||||
ExecStop=@DIR@/softether/vpnserver/vpnserver stop
|
|
||||||
KillMode=process
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
# Hardening
|
# Hardening
|
||||||
|
|||||||
Reference in New Issue
Block a user