mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-04-30 10:49:25 +03:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fe8004e561 |
@@ -0,0 +1,33 @@
|
|||||||
|
version: '{build}'
|
||||||
|
|
||||||
|
image: Ubuntu2004
|
||||||
|
|
||||||
|
configuration: Release
|
||||||
|
|
||||||
|
skip_branch_with_pr: true
|
||||||
|
clone_depth: 1
|
||||||
|
|
||||||
|
skip_commits:
|
||||||
|
files:
|
||||||
|
- .travis.yml
|
||||||
|
- .gitlab-ci.yml
|
||||||
|
- .azure-pipelines.yml
|
||||||
|
- .cirrus.yml
|
||||||
|
|
||||||
|
init:
|
||||||
|
- ps: Update-AppveyorBuild -Version "build-$env:APPVEYOR_BUILD_NUMBER-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))"
|
||||||
|
|
||||||
|
install:
|
||||||
|
- sudo apt-get -y install libsodium-dev libcap-ng-dev
|
||||||
|
before_build:
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
- ./configure
|
||||||
|
build_script:
|
||||||
|
- make package -C build -j $(nproc || sysctl -n hw.ncpu || echo 4)
|
||||||
|
- .ci/memory-leak-test.sh
|
||||||
|
test_script:
|
||||||
|
- .ci/appveyor-deb-install-test.sh
|
||||||
|
- sudo apt-get update && sudo apt-get -y install autoconf libtool liblzo2-dev libpam-dev fping unzip liblz4-dev libnl-genl-3-dev # openvpn build deps
|
||||||
|
- sudo .ci/start-se-openvpn.sh
|
||||||
|
- sudo .ci/run-openvpn-tests.sh
|
||||||
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
jobs:
|
||||||
|
- template: .ci/azure-pipelines/linux.yml
|
||||||
|
- template: .ci/azure-pipelines/windows.yml
|
||||||
|
- template: .ci/azure-pipelines/macos.yml
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
jobs:
|
||||||
|
- job: Ubuntu_x64
|
||||||
|
pool:
|
||||||
|
vmImage: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- checkout: self
|
||||||
|
submodules: true
|
||||||
|
persistCredentials: true
|
||||||
|
- script: sudo apt update && sudo apt-get -y install cmake gcc g++ ninja-build libncurses5-dev libreadline-dev libsodium-dev libssl-dev make zlib1g-dev liblz4-dev libnl-genl-3-dev
|
||||||
|
displayName: 'Prepare environment'
|
||||||
|
- script: "$(Build.SourcesDirectory)/.ci/azure-pipelines/linux_build.sh"
|
||||||
|
env:
|
||||||
|
SE_BUILD_NUMBER_TOKEN: $(BUILD_NUMBER_TOKEN)
|
||||||
|
displayName: 'Build'
|
||||||
|
- script: |
|
||||||
|
.ci/appveyor-deb-install-test.sh
|
||||||
|
sudo apt-get -y install autoconf libtool liblzo2-dev libpam-dev fping unzip libcap-ng-dev # To build OpenVPN
|
||||||
|
sudo BUILD_BINARIESDIRECTORY=$BUILD_BINARIESDIRECTORY .ci/start-se-openvpn.sh
|
||||||
|
sudo BUILD_BINARIESDIRECTORY=$BUILD_BINARIESDIRECTORY .ci/run-openvpn-tests.sh
|
||||||
|
displayName: 'Test'
|
||||||
Executable
+15
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ "${#SE_BUILD_NUMBER_TOKEN}" -eq 64 ]]; then
|
||||||
|
VERSION=$(python3 "version.py")
|
||||||
|
BUILD_NUMBER=$(curl "https://softether.network/get-build-number?commit=${BUILD_SOURCEVERSION}&version=${VERSION}&token=${SE_BUILD_NUMBER_TOKEN}")
|
||||||
|
else
|
||||||
|
BUILD_NUMBER=0
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd ${BUILD_BINARIESDIRECTORY}
|
||||||
|
|
||||||
|
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_NUMBER=${BUILD_NUMBER} ${BUILD_SOURCESDIRECTORY}
|
||||||
|
cmake --build .
|
||||||
|
|
||||||
|
cpack -C Release -G DEB
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
jobs:
|
||||||
|
- job: macOS
|
||||||
|
pool:
|
||||||
|
vmImage: macOS-latest
|
||||||
|
steps:
|
||||||
|
- checkout: self
|
||||||
|
submodules: true
|
||||||
|
persistCredentials: true
|
||||||
|
- script: brew install pkg-config cmake ninja ncurses readline libsodium openssl zlib
|
||||||
|
displayName: 'Prepare environment'
|
||||||
|
- script: '$(Build.SourcesDirectory)/.ci/azure-pipelines/macos_build.sh'
|
||||||
|
env:
|
||||||
|
SE_BUILD_NUMBER_TOKEN: $(BUILD_NUMBER_TOKEN)
|
||||||
|
displayName: 'Build'
|
||||||
Executable
+13
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ "${#SE_BUILD_NUMBER_TOKEN}" -eq 64 ]]; then
|
||||||
|
VERSION=$(python3 "version.py")
|
||||||
|
BUILD_NUMBER=$(curl "https://softether.network/get-build-number?commit=${BUILD_SOURCEVERSION}&version=${VERSION}&token=${SE_BUILD_NUMBER_TOKEN}")
|
||||||
|
else
|
||||||
|
BUILD_NUMBER=0
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd ${BUILD_BINARIESDIRECTORY}
|
||||||
|
|
||||||
|
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_NUMBER=${BUILD_NUMBER} -DOPENSSL_ROOT_DIR="/usr/local/opt/openssl" ${BUILD_SOURCESDIRECTORY}
|
||||||
|
cmake --build .
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
parameters:
|
||||||
|
- name: architecture
|
||||||
|
type: string
|
||||||
|
- name: compilerPath
|
||||||
|
type: string
|
||||||
|
- name: vcpkgTriplet
|
||||||
|
type: string
|
||||||
|
- name: vcvarsPath
|
||||||
|
type: string
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- task: Cache@2
|
||||||
|
inputs:
|
||||||
|
key: '"vcpkg-manifest" | "$(Agent.OS)" | "${{parameters.vcpkgTriplet}}" | C:/vcpkg/.git/refs/heads/master'
|
||||||
|
path: '$(Build.BinariesDirectory)/vcpkg_installed'
|
||||||
|
displayName: 'Environment storage'
|
||||||
|
- script: '$(Build.SourcesDirectory)/.ci/azure-pipelines/windows_build.bat'
|
||||||
|
env:
|
||||||
|
ARCHITECTURE: ${{parameters.architecture}}
|
||||||
|
COMPILER_PATH: ${{parameters.compilerPath}}
|
||||||
|
VCPKG_TRIPLET: ${{parameters.vcpkgTriplet}}
|
||||||
|
VCVARS_PATH: ${{parameters.vcvarsPath}}
|
||||||
|
SE_BUILD_NUMBER_TOKEN: $(BUILD_NUMBER_TOKEN)
|
||||||
|
displayName: 'Build'
|
||||||
|
- powershell: |
|
||||||
|
. .ci/appveyor-vpntest.ps1
|
||||||
|
displayName: 'Test'
|
||||||
|
- task: CopyFiles@2
|
||||||
|
inputs:
|
||||||
|
sourceFolder: '$(Build.BinariesDirectory)'
|
||||||
|
contents: '?(*.exe|*.se2|*.pdb)'
|
||||||
|
TargetFolder: '$(Build.StagingDirectory)/binaries/${{parameters.architecture}}'
|
||||||
|
flattenFolders: true
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
inputs:
|
||||||
|
pathtoPublish: '$(Build.StagingDirectory)/binaries/${{parameters.architecture}}'
|
||||||
|
artifactName: 'Binaries_${{parameters.architecture}}'
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
inputs:
|
||||||
|
pathtoPublish: '$(Build.StagingDirectory)/installers'
|
||||||
|
artifactName: 'Installers'
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
jobs:
|
||||||
|
- job: Windows_x64
|
||||||
|
pool:
|
||||||
|
vmImage: windows-latest
|
||||||
|
steps:
|
||||||
|
- checkout: self
|
||||||
|
submodules: true
|
||||||
|
persistCredentials: true
|
||||||
|
- template: "windows-steps.yml"
|
||||||
|
parameters:
|
||||||
|
architecture: "x64"
|
||||||
|
compilerPath: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/x64/bin/clang-cl.exe"
|
||||||
|
vcpkgTriplet: "x64-windows-static"
|
||||||
|
vcvarsPath: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
|
||||||
|
- job: Windows_x86
|
||||||
|
pool:
|
||||||
|
vmImage: windows-latest
|
||||||
|
steps:
|
||||||
|
- checkout: self
|
||||||
|
submodules: true
|
||||||
|
persistCredentials: true
|
||||||
|
- template: "windows-steps.yml"
|
||||||
|
parameters:
|
||||||
|
architecture: "x86"
|
||||||
|
compilerPath: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/bin/clang-cl.exe"
|
||||||
|
vcpkgTriplet: "x86-windows-static"
|
||||||
|
vcvarsPath: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars32.bat"
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
@echo on
|
||||||
|
|
||||||
|
:: The method we use to store a command's output into a variable:
|
||||||
|
:: https://stackoverflow.com/a/6362922
|
||||||
|
for /f "tokens=* USEBACKQ" %%g in (`python "version.py"`) do (set "VERSION=%%g")
|
||||||
|
|
||||||
|
:: https://stackoverflow.com/a/8566001
|
||||||
|
echo %SE_BUILD_NUMBER_TOKEN%> "%tmp%\length.txt"
|
||||||
|
for %%? in ("%tmp%\length.txt") do ( set /A SE_BUILD_NUMBER_TOKEN_LENGTH=%%~z? - 2 )
|
||||||
|
|
||||||
|
if %SE_BUILD_NUMBER_TOKEN_LENGTH% equ 64 (
|
||||||
|
for /f "tokens=* USEBACKQ" %%g in (`curl "https://softether.network/get-build-number?commit=%BUILD_SOURCEVERSION%&version=%VERSION%&token=%SE_BUILD_NUMBER_TOKEN%"`) do (set "BUILD_NUMBER=%%g")
|
||||||
|
) else (
|
||||||
|
set BUILD_NUMBER=0
|
||||||
|
)
|
||||||
|
|
||||||
|
cd %BUILD_BINARIESDIRECTORY%
|
||||||
|
|
||||||
|
call "%VCVARS_PATH%"
|
||||||
|
|
||||||
|
cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="C:\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=%VCPKG_TRIPLET% -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER="%COMPILER_PATH%" -DCMAKE_CXX_COMPILER="%COMPILER_PATH%" -DBUILD_NUMBER=%BUILD_NUMBER% "%BUILD_SOURCESDIRECTORY%"
|
||||||
|
cmake --build .
|
||||||
|
|
||||||
|
mkdir "%BUILD_STAGINGDIRECTORY%\installers"
|
||||||
|
vpnsetup /SFXMODE:vpnclient /SFXOUT:"%BUILD_STAGINGDIRECTORY%\installers\softether-vpnclient-%VERSION%.%BUILD_NUMBER%.%ARCHITECTURE%.exe"
|
||||||
|
vpnsetup /SFXMODE:vpnserver_vpnbridge /SFXOUT:"%BUILD_STAGINGDIRECTORY%\installers\softether-vpnserver_vpnbridge-%VERSION%.%BUILD_NUMBER%.%ARCHITECTURE%.exe"
|
||||||
+1
-1
@@ -11,7 +11,7 @@ FreeBSD_task:
|
|||||||
SSL:
|
SSL:
|
||||||
matrix:
|
matrix:
|
||||||
freebsd_instance:
|
freebsd_instance:
|
||||||
image_family: freebsd-14-0
|
image_family: freebsd-13-2
|
||||||
prepare_script:
|
prepare_script:
|
||||||
- pkg install -y pkgconf cmake git libsodium $SSL
|
- pkg install -y pkgconf cmake git libsodium $SSL
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
|
|||||||
@@ -0,0 +1,51 @@
|
|||||||
|
Hi, there!
|
||||||
|
|
||||||
|
Thank you for using SoftEther.
|
||||||
|
|
||||||
|
If you are running SoftEther VPN 4.x (i.e. Stable Edition), please read the comparison with Developer Edition at:
|
||||||
|
|
||||||
|
https://github.com/SoftEtherVPN/SoftEtherVPN#comparison-with-stable-edition
|
||||||
|
|
||||||
|
Before you submit an issue, please read the following:
|
||||||
|
|
||||||
|
Is this a question?
|
||||||
|
|
||||||
|
- If the answer is "yes", then please ask your question on [www.vpnusers.com](http://www.vpnusers.com).
|
||||||
|
The issue section on GitHub is reserved for bugs and feature requests.
|
||||||
|
|
||||||
|
- If the answer is "no", please read the following:
|
||||||
|
|
||||||
|
We provide a template which is specifically made for bug reports, in order to be sure that the report includes enough details to be helpful.
|
||||||
|
|
||||||
|
Please use or adapt it as needed.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Prerequisites
|
||||||
|
|
||||||
|
* [ ] Can you reproduce?
|
||||||
|
* [ ] Are you running the latest version of SoftEtherVPN?
|
||||||
|
|
||||||
|
**SoftEther version:**
|
||||||
|
**Component:** [Server, Client, Bridge, etc.]
|
||||||
|
**Operating system:** [Windows, Linux, BSD, macOS, etc.]
|
||||||
|
**Architecture:** [64 bit, 32 bit]
|
||||||
|
|
||||||
|
[In case it's a computer with known specs, such as the Raspberry Pi, you can specify it omitting the details.]
|
||||||
|
**Processor:** [Specify brand and model. Example: AMD Ryzen 7 1800x]
|
||||||
|
|
||||||
|
### Description
|
||||||
|
|
||||||
|
[Description of the bug]
|
||||||
|
|
||||||
|
**Expected behavior:**
|
||||||
|
[What you expected to happen]
|
||||||
|
|
||||||
|
**Actual behavior:**
|
||||||
|
[What actually happened]
|
||||||
|
|
||||||
|
### Steps to reproduce
|
||||||
|
|
||||||
|
1. [First step]
|
||||||
|
2. [Second step]
|
||||||
|
3. [And so on...]
|
||||||
@@ -1,87 +0,0 @@
|
|||||||
name: Bug Report or Issue Report
|
|
||||||
description: File a bug report or an issue report
|
|
||||||
labels: "needs-triage"
|
|
||||||
body:
|
|
||||||
- type: markdown
|
|
||||||
attributes:
|
|
||||||
value: |
|
|
||||||
Thanks for taking the time to fill out this bug report!
|
|
||||||
We provide a template which is specifically made for bug reports, to be sure that the report includes enough details to be helpful.
|
|
||||||
|
|
||||||
- type: checkboxes
|
|
||||||
attributes:
|
|
||||||
label: Are you using SoftEther VPN 5.x?
|
|
||||||
description: |
|
|
||||||
This issue tracker is for SoftEther VPN Developer Edition versioned 5.x.
|
|
||||||
Please report issues about SoftEther VPN Stable Edition versioned 4.x through the correct path.
|
|
||||||
See also [the top of the issue tracker](https://github.com/SoftEtherVPN/SoftEtherVPN/issues/new/choose).
|
|
||||||
options:
|
|
||||||
- label: Yes, I'm using SoftEther VPN 5.x, not 4.x.
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: input
|
|
||||||
attributes:
|
|
||||||
label: Version
|
|
||||||
description: |
|
|
||||||
The exact version you are using.
|
|
||||||
It would be very nice if you let us know version tag or commit hash.
|
|
||||||
placeholder: "5.02.5180 / 09b7e4f / 5.01.9674+git20200806+8181039+dfsg2-2build1"
|
|
||||||
|
|
||||||
- type: dropdown
|
|
||||||
attributes:
|
|
||||||
label: Component
|
|
||||||
description: Which component did you encounter an issue with?
|
|
||||||
multiple: true
|
|
||||||
options:
|
|
||||||
- VPN Server
|
|
||||||
- VPN Bridge
|
|
||||||
- VPN Client
|
|
||||||
- VPN Tools
|
|
||||||
- Other
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: input
|
|
||||||
attributes:
|
|
||||||
label: Operating system & version
|
|
||||||
placeholder: "Windows 11 Pro 23H2 / Ubuntu 22.04 / FreeBSD 14.0 / macOS Sonoma / Independent"
|
|
||||||
description: |
|
|
||||||
Let us know about your operating system and version.
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: input
|
|
||||||
attributes:
|
|
||||||
label: Architecture or Hardware model
|
|
||||||
placeholder: "amd64 / aarch64 / Raspberry Pi 4B+ / Apple M2"
|
|
||||||
description: |
|
|
||||||
Necessary if your issue is architecture-specific.
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: Steps to reproduce
|
|
||||||
placeholder: Having detailed steps helps us reproduce the bug.
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: ✔️ Expected Behavior
|
|
||||||
placeholder: What do you expect to happen?
|
|
||||||
validations:
|
|
||||||
required: false
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: ❌ Actual Behavior
|
|
||||||
placeholder: What happened actually?
|
|
||||||
validations:
|
|
||||||
required: false
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: Anything else?
|
|
||||||
description: |
|
|
||||||
Links? References?
|
|
||||||
Anything that will give us more context about the issue you are encountering!
|
|
||||||
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
contact_links:
|
|
||||||
- name: Are you using SoftEther VPN 4.x?
|
|
||||||
about: This repository is for SoftEther VPN 5.x Developer Edition, developed independently from SoftEther VPN 4.x. Visit vpnusers.com if you would like to report issues or ask questions about version 4.x!
|
|
||||||
url: https://www.vpnusers.com/
|
|
||||||
|
|
||||||
- name: Questions about SoftEtherVPN 5.x
|
|
||||||
about: Visit Discussions to ask community to help.
|
|
||||||
url: https://github.com/SoftEtherVPN/SoftEtherVPN/discussions/new?category=q-a
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build_and_test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: sudo apt update && sudo apt-get -y install cmake gcc g++ ninja-build libncurses5-dev libreadline-dev libsodium-dev libssl-dev make zlib1g-dev liblz4-dev libnl-genl-3-dev
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: |
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
|
|
||||||
cmake --build .
|
|
||||||
|
|
||||||
- name: Build deb packages
|
|
||||||
run: |
|
|
||||||
cd build
|
|
||||||
cpack -C Release -G DEB
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: |
|
|
||||||
.ci/appveyor-deb-install-test.sh
|
|
||||||
sudo apt-get -y install autoconf libtool liblzo2-dev libpam-dev fping unzip libcap-ng-dev # To build OpenVPN
|
|
||||||
sudo .ci/start-se-openvpn.sh
|
|
||||||
sudo .ci/run-openvpn-tests.sh
|
|
||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
build_and_test:
|
build_and_test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-14, macos-13, macos-12]
|
os: [macos-13, macos-12, macos-11]
|
||||||
name: ${{ matrix.os }}
|
name: ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -1,63 +0,0 @@
|
|||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build_and_test:
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
platform: [
|
|
||||||
{ ARCHITECTURE: x86, COMPILER_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/bin/clang-cl.exe", VCPKG_TRIPLET: "x86-windows-static", VCVARS_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars32.bat"},
|
|
||||||
{ ARCHITECTURE: x64, COMPILER_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/x64/bin/clang-cl.exe", VCPKG_TRIPLET: "x64-windows-static", VCVARS_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"}
|
|
||||||
]
|
|
||||||
runs-on: windows-latest
|
|
||||||
name: ${{ matrix.platform.ARCHITECTURE }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
- name: Cache vcpkg
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: 'build/vcpkg_installed/'
|
|
||||||
key: vcpkg-${{ matrix.platform.VCPKG_TRIPLET }}
|
|
||||||
- name: Set version variables
|
|
||||||
run: |
|
|
||||||
$v = python version.py
|
|
||||||
echo "VERSION=$v" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
|
|
||||||
shell: pwsh
|
|
||||||
- name: Build
|
|
||||||
env:
|
|
||||||
ARCHITECTURE: ${{ matrix.platform.ARCHITECTURE }}
|
|
||||||
COMPILER_PATH: ${{ matrix.platform.COMPILER_PATH }}
|
|
||||||
VCPKG_TRIPLET: ${{ matrix.platform.VCPKG_TRIPLET }}
|
|
||||||
VCVARS_PATH: ${{ matrix.platform.VCVARS_PATH }}
|
|
||||||
run: |
|
|
||||||
set BUILD_NUMBER=0
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
call "%VCVARS_PATH%"
|
|
||||||
cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="C:\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=%VCPKG_TRIPLET% -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER="%COMPILER_PATH%" -DCMAKE_CXX_COMPILER="%COMPILER_PATH%" -DBUILD_NUMBER=%BUILD_NUMBER% ..
|
|
||||||
cmake --build .
|
|
||||||
mkdir installers
|
|
||||||
vpnsetup /SFXMODE:vpnclient /SFXOUT:"installers\softether-vpnclient-%VERSION%.%BUILD_NUMBER%.%ARCHITECTURE%.exe"
|
|
||||||
vpnsetup /SFXMODE:vpnserver_vpnbridge /SFXOUT:"installers\softether-vpnserver_vpnbridge-%VERSION%.%BUILD_NUMBER%.%ARCHITECTURE%.exe"
|
|
||||||
shell: cmd
|
|
||||||
- name: Test
|
|
||||||
shell: powershell
|
|
||||||
run: |
|
|
||||||
. .ci/appveyor-vpntest.ps1
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
if-no-files-found: error
|
|
||||||
name: Binaries-${{ matrix.platform.ARCHITECTURE }}
|
|
||||||
path: |
|
|
||||||
build/*.exe
|
|
||||||
build/*.pdb
|
|
||||||
build/*.se2
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
if-no-files-found: error
|
|
||||||
name: Installers-${{ matrix.platform.ARCHITECTURE }}
|
|
||||||
path: build/installers
|
|
||||||
@@ -1,94 +0,0 @@
|
|||||||
name: "Release"
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
runs-on: windows-latest
|
|
||||||
outputs:
|
|
||||||
upload_url: "${{ steps.create_release.outputs.upload_url }}"
|
|
||||||
steps:
|
|
||||||
- name: "Checkout repository"
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: "Create GitHub release"
|
|
||||||
id: create_release
|
|
||||||
uses: softprops/action-gh-release@v1
|
|
||||||
build-windows:
|
|
||||||
name: ${{ matrix.platform.ARCHITECTURE }}
|
|
||||||
runs-on: windows-latest
|
|
||||||
needs: ["release"]
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
platform: [
|
|
||||||
{ ARCHITECTURE: x86, COMPILER_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/bin/clang-cl.exe", VCPKG_TRIPLET: "x86-windows-static", VCVARS_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars32.bat"},
|
|
||||||
{ ARCHITECTURE: x64, COMPILER_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/Llvm/x64/bin/clang-cl.exe", VCPKG_TRIPLET: "x64-windows-static", VCVARS_PATH: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"}
|
|
||||||
]
|
|
||||||
steps:
|
|
||||||
- name: "Checkout repository"
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
- name: Cache vcpkg
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: 'build/vcpkg_installed/'
|
|
||||||
key: vcpkg-release-${{ matrix.platform.VCPKG_TRIPLET }}
|
|
||||||
- name: Set version variables
|
|
||||||
run: |
|
|
||||||
$b=(Get-Content CMakeSettings.json | Out-String | ConvertFrom-Json).environments.BuildNumber
|
|
||||||
echo "BUILD_NUMBER=$b" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
|
|
||||||
$v = python version.py
|
|
||||||
echo "VERSION=$v" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
|
|
||||||
shell: pwsh
|
|
||||||
- name: Build
|
|
||||||
env:
|
|
||||||
ARCHITECTURE: ${{ matrix.platform.ARCHITECTURE }}
|
|
||||||
COMPILER_PATH: ${{ matrix.platform.COMPILER_PATH }}
|
|
||||||
VCPKG_TRIPLET: ${{ matrix.platform.VCPKG_TRIPLET }}
|
|
||||||
VCVARS_PATH: ${{ matrix.platform.VCVARS_PATH }}
|
|
||||||
run: |
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
call "%VCVARS_PATH%"
|
|
||||||
cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="C:\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=%VCPKG_TRIPLET% -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER="%COMPILER_PATH%" -DCMAKE_CXX_COMPILER="%COMPILER_PATH%" -DBUILD_NUMBER=%BUILD_NUMBER% ..
|
|
||||||
cmake --build .
|
|
||||||
mkdir installers
|
|
||||||
vpnsetup /SFXMODE:vpnclient /SFXOUT:"installers\softether-vpnclient-%VERSION%.%BUILD_NUMBER%.%ARCHITECTURE%.exe"
|
|
||||||
vpnsetup /SFXMODE:vpnserver_vpnbridge /SFXOUT:"installers\softether-vpnserver_vpnbridge-%VERSION%.%BUILD_NUMBER%.%ARCHITECTURE%.exe"
|
|
||||||
shell: cmd
|
|
||||||
|
|
||||||
- name: dir
|
|
||||||
run: |
|
|
||||||
Get-ChildItem -Recurse build/installers
|
|
||||||
shell: pwsh
|
|
||||||
|
|
||||||
- name: "Upload softether-vpnclient"
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: "${{ github.token }}"
|
|
||||||
with:
|
|
||||||
upload_url: "${{ needs.release.outputs.upload_url }}"
|
|
||||||
asset_path: "build/installers/softether-vpnclient-${{ env.VERSION }}.${{ env.BUILD_NUMBER }}.${{ matrix.platform.ARCHITECTURE }}.exe"
|
|
||||||
asset_name: "softether-vpnclient-${{ env.VERSION }}.${{ env.BUILD_NUMBER }}.${{ matrix.platform.ARCHITECTURE }}.exe"
|
|
||||||
asset_content_type: "application/octet-stream"
|
|
||||||
- name: "Upload softether-vpnserver_vpnbridge"
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: "${{ github.token }}"
|
|
||||||
with:
|
|
||||||
upload_url: "${{ needs.release.outputs.upload_url }}"
|
|
||||||
asset_path: "build/installers/softether-vpnserver_vpnbridge-${{ env.VERSION }}.${{ env.BUILD_NUMBER }}.${{ matrix.platform.ARCHITECTURE }}.exe"
|
|
||||||
asset_name: "softether-vpnserver_vpnbridge-${{ env.VERSION }}.${{ env.BUILD_NUMBER }}.${{ matrix.platform.ARCHITECTURE }}.exe"
|
|
||||||
asset_content_type: "application/octet-stream"
|
|
||||||
|
|
||||||
+1
-1
@@ -209,4 +209,4 @@ developer_tools/stbchecker/**/ASALocalRun/
|
|||||||
developer_tools/stbchecker/**/*.binlog
|
developer_tools/stbchecker/**/*.binlog
|
||||||
developer_tools/stbchecker/**/*.nvuser
|
developer_tools/stbchecker/**/*.nvuser
|
||||||
developer_tools/stbchecker/**/.mfractor/
|
developer_tools/stbchecker/**/.mfractor/
|
||||||
/vcpkg_installed
|
|
||||||
|
|||||||
Vendored
-3
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"cmake.configureOnOpen": false
|
|
||||||
}
|
|
||||||
+2
-2
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.10)
|
|||||||
set(BUILD_NUMBER CACHE STRING "The number of the current build.")
|
set(BUILD_NUMBER CACHE STRING "The number of the current build.")
|
||||||
|
|
||||||
if ("${BUILD_NUMBER}" STREQUAL "")
|
if ("${BUILD_NUMBER}" STREQUAL "")
|
||||||
set(BUILD_NUMBER "5185")
|
set(BUILD_NUMBER "5180")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (BUILD_NUMBER LESS 5180)
|
if (BUILD_NUMBER LESS 5180)
|
||||||
@@ -53,7 +53,7 @@ if(UNIX)
|
|||||||
#
|
#
|
||||||
# use rpath for locating installed libraries
|
# use rpath for locating installed libraries
|
||||||
#
|
#
|
||||||
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
|
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
||||||
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||||
|
|
||||||
include(CheckIncludeFile)
|
include(CheckIncludeFile)
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"environments": [ { "BuildNumber": "5185" } ],
|
"environments": [ { "BuildNumber": "5180" } ],
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "x64-native",
|
"name": "x64-native",
|
||||||
|
|||||||
@@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
||Badges|
|
||Badges|
|
||||||
|---|---|
|
|---|---|
|
||||||
|
|AppVeyor|[](https://ci.appveyor.com/project/softethervpn/softethervpn) |
|
||||||
|GitLab CI|[](https://gitlab.com/SoftEther/SoftEtherVPN/pipelines)|
|
|GitLab CI|[](https://gitlab.com/SoftEther/SoftEtherVPN/pipelines)|
|
||||||
|Coverity Scan|[](https://scan.coverity.com/projects/softethervpn-softethervpn)|
|
|Coverity Scan|[](https://scan.coverity.com/projects/softethervpn-softethervpn)|
|
||||||
|
|Azure Pipelines|[](https://dev.azure.com/SoftEther-VPN/SoftEther%20VPN/_build?definitionId=6)|
|
||||||
|Cirrus CI|[](https://cirrus-ci.com/github/SoftEtherVPN/SoftEtherVPN)|
|
|Cirrus CI|[](https://cirrus-ci.com/github/SoftEtherVPN/SoftEtherVPN)|
|
||||||
|
|
||||||
- [SoftEther VPN](#softether-vpn)
|
- [SoftEther VPN](#softether-vpn)
|
||||||
|
|||||||
Generated
+13
-15
@@ -65,23 +65,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"braces": {
|
"braces": {
|
||||||
"version": "3.0.3",
|
"version": "3.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
|
||||||
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
|
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"fill-range": "^7.1.1"
|
"fill-range": "^7.0.1"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"fill-range": {
|
|
||||||
"version": "7.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
|
|
||||||
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"to-regex-range": "^5.0.1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"builtin-modules": {
|
"builtin-modules": {
|
||||||
@@ -162,6 +151,15 @@
|
|||||||
"integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=",
|
"integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"fill-range": {
|
||||||
|
"version": "7.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
|
||||||
|
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"to-regex-range": "^5.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"fs.realpath": {
|
"fs.realpath": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
||||||
|
|||||||
+1
-1
@@ -228,7 +228,7 @@ You can write your own VPN Server management application in your favorite langua
|
|||||||
|
|
||||||
You can use any SoftEtherVPN component (server, client, bridge) without installing it, if you wish so.
|
You can use any SoftEtherVPN component (server, client, bridge) without installing it, if you wish so.
|
||||||
|
|
||||||
In this case please do not run the `make install` command after compiling the source code, and head directly to the **build/** directory. There you will find the generated binaries for SoftEtherVPN and those could be used without installing SoftEtherVPN.
|
In this case please do not run the `make install` command after compiling the source code, and head directly to the **bin/** directory. There you will find the generated binaries for SoftEtherVPN and those could be used without installing SoftEtherVPN.
|
||||||
|
|
||||||
************************************
|
************************************
|
||||||
Thank You Using SoftEther VPN !
|
Thank You Using SoftEther VPN !
|
||||||
|
|||||||
@@ -805,12 +805,7 @@ bool EthIsChangeMtuSupported(ETH *e)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FreeBSD seriously dislikes MTU changes; disable if compiled on that platform
|
|
||||||
#ifndef __FreeBSD__
|
|
||||||
return true;
|
return true;
|
||||||
#else
|
|
||||||
return false;
|
|
||||||
#endif
|
|
||||||
#else // defined(UNIX_LINUX) || defined(UNIX_BSD) || defined(UNIX_SOLARIS)
|
#else // defined(UNIX_LINUX) || defined(UNIX_BSD) || defined(UNIX_SOLARIS)
|
||||||
return false;
|
return false;
|
||||||
#endif // defined(UNIX_LINUX) || defined(UNIX_BSD) || defined(UNIX_SOLARIS)
|
#endif // defined(UNIX_LINUX) || defined(UNIX_BSD) || defined(UNIX_SOLARIS)
|
||||||
|
|||||||
+8
-13
@@ -1161,8 +1161,7 @@ void Win32EthMakeCombinedName(char *dst, UINT dst_size, char *nicname, char *gui
|
|||||||
|
|
||||||
if (IsEmptyStr(guid) == false)
|
if (IsEmptyStr(guid) == false)
|
||||||
{
|
{
|
||||||
// Allow to combine "FriendlyName" consisting of a NULL character and ID.
|
Format(dst, dst_size, "%s (ID=%010u)", nicname, Win32EthGenIdFromGuid(guid));
|
||||||
Format(dst, dst_size, "%s(ID=%010u)", nicname, Win32EthGenIdFromGuid(guid));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1186,19 +1185,18 @@ UINT Win32EthGetNameAndIdFromCombinedName(char *name, UINT name_size, char *str)
|
|||||||
|
|
||||||
len = StrLen(str);
|
len = StrLen(str);
|
||||||
|
|
||||||
// Allow to combine "FriendlyName" consisting of a NULL character and ID beginning with "(ID=".
|
if (len >= 16)
|
||||||
if (len >= 15)
|
|
||||||
{
|
{
|
||||||
StrCpy(id_str, sizeof(id_str), str + len - 15);
|
StrCpy(id_str, sizeof(id_str), str + len - 16);
|
||||||
|
|
||||||
if (StartWith(id_str, "(ID="))
|
if (StartWith(id_str, " (ID="))
|
||||||
{
|
{
|
||||||
if (EndWith(id_str, ")"))
|
if (EndWith(id_str, ")"))
|
||||||
{
|
{
|
||||||
char num[MAX_SIZE];
|
char num[MAX_SIZE];
|
||||||
|
|
||||||
Zero(num, sizeof(num));
|
Zero(num, sizeof(num));
|
||||||
StrCpy(num, sizeof(num), id_str + 4);
|
StrCpy(num, sizeof(num), id_str + 5);
|
||||||
|
|
||||||
num[StrLen(num) - 1] = 0;
|
num[StrLen(num) - 1] = 0;
|
||||||
|
|
||||||
@@ -1206,7 +1204,7 @@ UINT Win32EthGetNameAndIdFromCombinedName(char *name, UINT name_size, char *str)
|
|||||||
|
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
{
|
{
|
||||||
name[len - 15] = 0;
|
name[len - 16] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1348,8 +1346,6 @@ TOKEN_LIST *GetEthListEx(UINT *total_num_including_hidden, bool enum_normal, boo
|
|||||||
|
|
||||||
Debug("%s - %s\n", a->Guid, a->Title);
|
Debug("%s - %s\n", a->Guid, a->Title);
|
||||||
}
|
}
|
||||||
// Make sure that "FriendlyName" does not cosist a NULL character.
|
|
||||||
Debug("%s,- s=%d, t=%s, %s,\n", a->Guid, show, tmp, a->Title[0] == 0 ? "check=NG FriendlyName(Title) is NULL !" : "check=OK");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
*total_num_including_hidden = ret->NumTokens;
|
*total_num_including_hidden = ret->NumTokens;
|
||||||
@@ -1409,7 +1405,7 @@ LIST *GetEthAdapterListInternal()
|
|||||||
UINT size;
|
UINT size;
|
||||||
char *buf;
|
char *buf;
|
||||||
UINT i, j;
|
UINT i, j;
|
||||||
char *qos_tag = "(Microsoft's Packet Scheduler)"; // Allow to combine "FriendlyName" consisting of a NULL character and QOS tag.
|
char *qos_tag = " (Microsoft's Packet Scheduler)";
|
||||||
SU *su = NULL;
|
SU *su = NULL;
|
||||||
LIST *su_adapter_list = NULL;
|
LIST *su_adapter_list = NULL;
|
||||||
|
|
||||||
@@ -1664,8 +1660,7 @@ ANSI_STR:
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Allow to combine "FriendlyName" consisting of a NULL character and SEQ number.
|
Format(tmp, sizeof(tmp), "%s (%u)", a->Title, k + 1);
|
||||||
Format(tmp, sizeof(tmp), "%s(%u)", a->Title, k + 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ok = true;
|
ok = true;
|
||||||
|
|||||||
+3
-12
@@ -1517,9 +1517,7 @@ void IPCProcessL3EventsEx(IPC *ipc, UINT64 now)
|
|||||||
// We save the router advertisement data for later use
|
// We save the router advertisement data for later use
|
||||||
IPCIPv6AddRouterPrefixes(ipc, &p->ICMPv6HeaderPacketInfo.OptionList, src_mac, &ip_src);
|
IPCIPv6AddRouterPrefixes(ipc, &p->ICMPv6HeaderPacketInfo.OptionList, src_mac, &ip_src);
|
||||||
IPCIPv6AssociateOnNDTEx(ipc, &ip_src, src_mac, true);
|
IPCIPv6AssociateOnNDTEx(ipc, &ip_src, src_mac, true);
|
||||||
if (p->ICMPv6HeaderPacketInfo.OptionList.SourceLinkLayer != NULL) {
|
IPCIPv6AssociateOnNDTEx(ipc, &ip_src, p->ICMPv6HeaderPacketInfo.OptionList.SourceLinkLayer->Address, true);
|
||||||
IPCIPv6AssociateOnNDTEx(ipc, &ip_src, p->ICMPv6HeaderPacketInfo.OptionList.SourceLinkLayer->Address, true);
|
|
||||||
}
|
|
||||||
ndtProcessed = true;
|
ndtProcessed = true;
|
||||||
header_size = sizeof(ICMPV6_ROUTER_ADVERTISEMENT_HEADER);
|
header_size = sizeof(ICMPV6_ROUTER_ADVERTISEMENT_HEADER);
|
||||||
break;
|
break;
|
||||||
@@ -2356,14 +2354,7 @@ void IPCIPv6AddRouterPrefixes(IPC *ipc, ICMPV6_OPTION_LIST *recvPrefix, UCHAR *m
|
|||||||
IntToSubnetMask6(&newRA->RoutedMask, recvPrefix->Prefix[i]->SubnetLength);
|
IntToSubnetMask6(&newRA->RoutedMask, recvPrefix->Prefix[i]->SubnetLength);
|
||||||
CopyIP(&newRA->RouterAddress, ip);
|
CopyIP(&newRA->RouterAddress, ip);
|
||||||
Copy(newRA->RouterMacAddress, macAddress, 6);
|
Copy(newRA->RouterMacAddress, macAddress, 6);
|
||||||
if (recvPrefix->SourceLinkLayer != NULL)
|
Copy(newRA->RouterLinkLayerAddress, recvPrefix->SourceLinkLayer->Address, 6);
|
||||||
{
|
|
||||||
Copy(newRA->RouterLinkLayerAddress, recvPrefix->SourceLinkLayer->Address, 6);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Zero(newRA->RouterLinkLayerAddress, 6);
|
|
||||||
}
|
|
||||||
Add(ipc->IPv6RouterAdvs, newRA);
|
Add(ipc->IPv6RouterAdvs, newRA);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2666,7 +2657,7 @@ void IPCIPv6SendUnicast(IPC *ipc, void *data, UINT size, IP *next_ip)
|
|||||||
}
|
}
|
||||||
|
|
||||||
destMac = ra.RouterMacAddress;
|
destMac = ra.RouterMacAddress;
|
||||||
if (!IsMacUnicast(destMac) && !IsMacInvalid(ra.RouterLinkLayerAddress))
|
if (!IsMacUnicast(destMac) && !IsMacInvalid(ra.RouterMacAddress))
|
||||||
{
|
{
|
||||||
destMac = ra.RouterLinkLayerAddress;
|
destMac = ra.RouterLinkLayerAddress;
|
||||||
}
|
}
|
||||||
|
|||||||
+30
-4
@@ -463,13 +463,39 @@ void ProcIPsecEspPacketRecv(IKE_SERVER *ike, UDPPACKET *p)
|
|||||||
seq = READ_UINT(src + sizeof(UINT));
|
seq = READ_UINT(src + sizeof(UINT));
|
||||||
|
|
||||||
// Search and retrieve the IPsec SA from SPI
|
// Search and retrieve the IPsec SA from SPI
|
||||||
|
|
||||||
// thank to @phillibert report, responding to bad SA might lead to amplification
|
|
||||||
// according to RFC4303 we should drop such packets
|
|
||||||
|
|
||||||
ipsec_sa = SearchClientToServerIPsecSaBySpi(ike, spi);
|
ipsec_sa = SearchClientToServerIPsecSaBySpi(ike, spi);
|
||||||
if (ipsec_sa == NULL)
|
if (ipsec_sa == NULL)
|
||||||
{
|
{
|
||||||
|
// Invalid SPI
|
||||||
|
UINT64 init_cookie = Rand64();
|
||||||
|
UINT64 resp_cookie = 0;
|
||||||
|
IKE_CLIENT *c = NULL;
|
||||||
|
IKE_CLIENT t;
|
||||||
|
|
||||||
|
|
||||||
|
Copy(&t.ClientIP, &p->SrcIP, sizeof(IP));
|
||||||
|
t.ClientPort = p->SrcPort;
|
||||||
|
Copy(&t.ServerIP, &p->DstIP, sizeof(IP));
|
||||||
|
t.ServerPort = p->DestPort;
|
||||||
|
t.CurrentIkeSa = NULL;
|
||||||
|
|
||||||
|
if (p->DestPort == IPSEC_PORT_IPSEC_ESP_RAW)
|
||||||
|
{
|
||||||
|
t.ClientPort = t.ServerPort = IPSEC_PORT_IPSEC_ISAKMP;
|
||||||
|
}
|
||||||
|
|
||||||
|
c = Search(ike->ClientList, &t);
|
||||||
|
|
||||||
|
if (c != NULL && c->CurrentIkeSa != NULL)
|
||||||
|
{
|
||||||
|
init_cookie = c->CurrentIkeSa->InitiatorCookie;
|
||||||
|
resp_cookie = c->CurrentIkeSa->ResponderCookie;
|
||||||
|
}
|
||||||
|
|
||||||
|
SendInformationalExchangePacketEx(ike, (c == NULL ? &t : c), IkeNewNoticeErrorInvalidSpiPayload(spi), false,
|
||||||
|
init_cookie, resp_cookie);
|
||||||
|
|
||||||
|
SendDeleteIPsecSaPacket(ike, (c == NULL ? &t : c), spi);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-15
@@ -6773,6 +6773,7 @@ PACK *PackLoginWithOpenVPNCertificate(char *hubname, char *username, X *x)
|
|||||||
|
|
||||||
p = NewPack();
|
p = NewPack();
|
||||||
PackAddStr(p, "method", "login");
|
PackAddStr(p, "method", "login");
|
||||||
|
PackAddStr(p, "hubname", hubname);
|
||||||
|
|
||||||
if (IsEmptyStr(username))
|
if (IsEmptyStr(username))
|
||||||
{
|
{
|
||||||
@@ -6781,26 +6782,12 @@ PACK *PackLoginWithOpenVPNCertificate(char *hubname, char *username, X *x)
|
|||||||
FreePack(p);
|
FreePack(p);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
UniToStr(cn_username, sizeof(cn_username), x->subject_name->CommonName);
|
UniToStr(cn_username, sizeof(cn_username), x->subject_name->CommonName);
|
||||||
|
PackAddStr(p, "username", cn_username);
|
||||||
if (strchr(cn_username, '@') != NULL)
|
|
||||||
|
|
||||||
{
|
|
||||||
PackAddStr(p, "username", strtok(cn_username, "@"));
|
|
||||||
PackAddStr(p, "hubname", strtok(NULL, ""));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
PackAddStr(p, "username", cn_username);
|
|
||||||
PackAddStr(p, "hubname", hubname);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PackAddStr(p, "username", username);
|
PackAddStr(p, "username", username);
|
||||||
PackAddStr(p, "hubname", hubname);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PackAddInt(p, "authtype", AUTHTYPE_OPENVPN_CERT);
|
PackAddInt(p, "authtype", AUTHTYPE_OPENVPN_CERT);
|
||||||
|
|||||||
+4
-39
@@ -753,45 +753,11 @@ LIST *SuGetAdapterList(SU *u)
|
|||||||
for (i = 0;i < u->AdapterInfoList.NumAdapters;i++)
|
for (i = 0;i < u->AdapterInfoList.NumAdapters;i++)
|
||||||
{
|
{
|
||||||
SL_ADAPTER_INFO *info = &u->AdapterInfoList.Adapters[i];
|
SL_ADAPTER_INFO *info = &u->AdapterInfoList.Adapters[i];
|
||||||
|
SU_ADAPTER_LIST *a = SuAdapterInfoToAdapterList(info);
|
||||||
|
|
||||||
if (IsEmptyStr(info->FriendlyName))
|
if (a != NULL)
|
||||||
{
|
{
|
||||||
// Some NetAdapterCx drivers doesn't report the FriendlyName in the kernel mode.
|
Add(ret, a);
|
||||||
// So we attempt to obtain the DriverDesc string from NetCfg registry key alternatively.
|
|
||||||
char regkey[MAX_PATH] = {0};
|
|
||||||
char tmp[MAX_PATH] = {0};
|
|
||||||
char adapter_guid[MAX_PATH] = {0};
|
|
||||||
|
|
||||||
UniToStr(adapter_guid, sizeof(adapter_guid), info->AdapterId + StrLen(SL_ADAPTER_ID_PREFIX));
|
|
||||||
|
|
||||||
if (GetClassRegKeyWin32(regkey, sizeof(regkey), tmp, sizeof(tmp), adapter_guid))
|
|
||||||
{
|
|
||||||
char *driver_desc = MsRegReadStrEx2(REG_LOCAL_MACHINE, regkey, "DriverDesc", false, true);
|
|
||||||
|
|
||||||
if (driver_desc != NULL)
|
|
||||||
{
|
|
||||||
StrCpy(info->FriendlyName, sizeof(info->FriendlyName), driver_desc);
|
|
||||||
Free(driver_desc);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
SU_ADAPTER_LIST *a = SuAdapterInfoToAdapterList(info);
|
|
||||||
|
|
||||||
char macstr[128] = {0};
|
|
||||||
BinToStr(macstr, sizeof(macstr), info->MacAddress, sizeof(info->MacAddress));
|
|
||||||
|
|
||||||
if (a != NULL)
|
|
||||||
{
|
|
||||||
// Debug("SU: Adapter %u (OK): ID=%S, MAC=%s, FriendlyName=%s\n", i, info->AdapterId, macstr, info->FriendlyName);
|
|
||||||
|
|
||||||
Add(ret, a);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Debug("SU: Adapter %u (NG): ID=%S, MAC=%s, FriendlyName=%s\n", i, info->AdapterId, macstr, info->FriendlyName);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -861,8 +827,7 @@ SU_ADAPTER_LIST *SuAdapterInfoToAdapterList(SL_ADAPTER_INFO *info)
|
|||||||
Copy(&t.Info, info, sizeof(SL_ADAPTER_INFO));
|
Copy(&t.Info, info, sizeof(SL_ADAPTER_INFO));
|
||||||
|
|
||||||
UniToStr(tmp, sizeof(tmp), info->AdapterId);
|
UniToStr(tmp, sizeof(tmp), info->AdapterId);
|
||||||
// Make the NIC appear in the "Local Bridge Settings" list regardless of a NULL character consisted in "FriendlyName".
|
if (IsEmptyStr(tmp) || IsEmptyStr(info->FriendlyName) || StartWith(tmp, SL_ADAPTER_ID_PREFIX) == false)
|
||||||
if (IsEmptyStr(tmp) || /* IsEmptyStr(info->FriendlyName) || */ StartWith(tmp, SL_ADAPTER_ID_PREFIX) == false)
|
|
||||||
{
|
{
|
||||||
// Name is invalid
|
// Name is invalid
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
+1
-1
@@ -615,7 +615,7 @@ void SessionMain(SESSION *s)
|
|||||||
UINT max_conn = s->ClientOption->MaxConnection;
|
UINT max_conn = s->ClientOption->MaxConnection;
|
||||||
|
|
||||||
if ((s->CurrentConnectionEstablishTime +
|
if ((s->CurrentConnectionEstablishTime +
|
||||||
(UINT64)(num_tcp_conn * s->ClientOption->AdditionalConnectionInterval * 1000 * 2 + CONNECTING_TIMEOUT * 2))
|
(UINT64)(s->ClientOption->AdditionalConnectionInterval * 1000 * 2 + CONNECTING_TIMEOUT * 2))
|
||||||
<= Tick64())
|
<= Tick64())
|
||||||
{
|
{
|
||||||
if (s->ClientOption->BindLocalPort != 0 || num_tcp_conn == 0)
|
if (s->ClientOption->BindLocalPort != 0 || num_tcp_conn == 0)
|
||||||
|
|||||||
+34
-79
@@ -9340,48 +9340,20 @@ UINT ServeDhcpDiscoverEx(VH *v, UCHAR *mac, UINT request_ip, bool is_static_ip)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
UINT ret = 0;
|
|
||||||
DHCP_LEASE *d = SearchDhcpLeaseByIp(v, request_ip);
|
DHCP_LEASE *d = SearchDhcpLeaseByIp(v, request_ip);
|
||||||
|
|
||||||
if (d != NULL)
|
if (d != NULL)
|
||||||
{
|
{
|
||||||
// If an entry for the same IP address already exists,
|
// The requested IP address is used already
|
||||||
// check whether it is a request from the same MAC address
|
return 0;
|
||||||
if (Cmp(mac, d->MacAddress, 6) == 0)
|
|
||||||
{
|
|
||||||
// Examine whether the specified IP address is within the range of static assignment
|
|
||||||
if (Endian32(v->DhcpIpStart) > Endian32(request_ip) ||
|
|
||||||
Endian32(request_ip) > Endian32(v->DhcpIpEnd))
|
|
||||||
{
|
|
||||||
// Accept if within the range of static assignment
|
|
||||||
ret = request_ip;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
// Duplicated IPV4 address found. The specified IP address is not available for use
|
|
||||||
char ipstr[MAX_HOST_NAME_LEN + 1] = { 0 };
|
|
||||||
char macstr[128] = { 0 };
|
|
||||||
IPToStr32(ipstr, sizeof(ipstr), request_ip);
|
|
||||||
MacToStr(macstr, sizeof(macstr), d->MacAddress);
|
|
||||||
Debug("Virtual DHC Server: Duplicated IP address detected. Static IP: %s, with the MAC: %s\n", ipstr, macstr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Examine whether the specified IP address is within the range of static assignment
|
|
||||||
if (Endian32(v->DhcpIpStart) > Endian32(request_ip) ||
|
|
||||||
Endian32(request_ip) > Endian32(v->DhcpIpEnd))
|
|
||||||
{
|
|
||||||
// Accept if within the range of static assignment
|
|
||||||
ret = request_ip;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// The specified IP address is not available for use
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
// For static IP, the requested IP address must NOT be within the range of the DHCP pool
|
||||||
|
if (Endian32(request_ip) < Endian32(v->DhcpIpStart) || Endian32(request_ip) > Endian32(v->DhcpIpEnd))
|
||||||
|
{
|
||||||
|
return request_ip;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Take an appropriate IP addresses that can be assigned newly
|
// Take an appropriate IP addresses that can be assigned newly
|
||||||
@@ -9568,11 +9540,6 @@ void VirtualDhcpServer(VH *v, PKT *p)
|
|||||||
{
|
{
|
||||||
ip = ServeDhcpRequestEx(v, p->MacAddressSrc, opt->RequestedIp, ip_static);
|
ip = ServeDhcpRequestEx(v, p->MacAddressSrc, opt->RequestedIp, ip_static);
|
||||||
}
|
}
|
||||||
// If the IP address in user's note is changed, then reply to DHCP_REQUEST with DHCP_NAK
|
|
||||||
if (p->L3.IPv4Header->SrcIP && ip != p->L3.IPv4Header->SrcIP)
|
|
||||||
{
|
|
||||||
ip = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ip != 0 || opt->Opcode == DHCP_INFORM)
|
if (ip != 0 || opt->Opcode == DHCP_INFORM)
|
||||||
@@ -9585,14 +9552,6 @@ void VirtualDhcpServer(VH *v, PKT *p)
|
|||||||
char client_mac[MAX_SIZE];
|
char client_mac[MAX_SIZE];
|
||||||
char client_ip[MAX_SIZE];
|
char client_ip[MAX_SIZE];
|
||||||
|
|
||||||
// If there is any entry with the same MAC address, then remove it
|
|
||||||
d = SearchDhcpLeaseByMac(v, p->MacAddressSrc);
|
|
||||||
if (d != NULL)
|
|
||||||
{
|
|
||||||
FreeDhcpLease(d);
|
|
||||||
Delete(v->DhcpLeaseList, d);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove old records with the same IP address
|
// Remove old records with the same IP address
|
||||||
d = SearchDhcpLeaseByIp(v, ip);
|
d = SearchDhcpLeaseByIp(v, ip);
|
||||||
if (d != NULL)
|
if (d != NULL)
|
||||||
@@ -9751,40 +9710,36 @@ void VirtualDhcpServer(VH *v, PKT *p)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Reply of DHCP_REQUEST must be either DHCP_ACK or DHCP_NAK
|
// There is no IP address that can be provided
|
||||||
if (opt->Opcode == DHCP_REQUEST)
|
DHCP_OPTION_LIST ret;
|
||||||
|
LIST *o;
|
||||||
|
Zero(&ret, sizeof(ret));
|
||||||
|
|
||||||
|
ret.Opcode = DHCP_NACK;
|
||||||
|
ret.ServerAddress = v->HostIP;
|
||||||
|
StrCpy(ret.DomainName, sizeof(ret.DomainName), v->DhcpDomain);
|
||||||
|
ret.SubnetMask = v->DhcpMask;
|
||||||
|
|
||||||
|
// Build the DHCP option
|
||||||
|
o = BuildDhcpOption(&ret);
|
||||||
|
if (o != NULL)
|
||||||
{
|
{
|
||||||
// There is no IP address that can be provided
|
BUF *b = BuildDhcpOptionsBuf(o);
|
||||||
DHCP_OPTION_LIST ret;
|
if (b != NULL)
|
||||||
LIST *o;
|
|
||||||
Zero(&ret, sizeof(ret));
|
|
||||||
|
|
||||||
ret.Opcode = DHCP_NACK;
|
|
||||||
ret.ServerAddress = v->HostIP;
|
|
||||||
StrCpy(ret.DomainName, sizeof(ret.DomainName), v->DhcpDomain);
|
|
||||||
ret.SubnetMask = v->DhcpMask;
|
|
||||||
|
|
||||||
// Build the DHCP option
|
|
||||||
o = BuildDhcpOption(&ret);
|
|
||||||
if (o != NULL)
|
|
||||||
{
|
{
|
||||||
BUF *b = BuildDhcpOptionsBuf(o);
|
UINT dest_ip = p->L3.IPv4Header->SrcIP;
|
||||||
if (b != NULL)
|
if (dest_ip == 0)
|
||||||
{
|
{
|
||||||
UINT dest_ip = p->L3.IPv4Header->SrcIP;
|
dest_ip = 0xffffffff;
|
||||||
if (dest_ip == 0)
|
|
||||||
{
|
|
||||||
dest_ip = 0xffffffff;
|
|
||||||
}
|
|
||||||
// Transmission
|
|
||||||
VirtualDhcpSend(v, tran_id, dest_ip, Endian16(p->L4.UDPHeader->SrcPort),
|
|
||||||
ip, dhcp->ClientMacAddress, b, dhcp->HardwareType, dhcp->HardwareAddressSize);
|
|
||||||
|
|
||||||
// Release the memory
|
|
||||||
FreeBuf(b);
|
|
||||||
}
|
}
|
||||||
FreeDhcpOptions(o);
|
// Transmission
|
||||||
|
VirtualDhcpSend(v, tran_id, dest_ip, Endian16(p->L4.UDPHeader->SrcPort),
|
||||||
|
ip, dhcp->ClientMacAddress, b, dhcp->HardwareType, dhcp->HardwareAddressSize);
|
||||||
|
|
||||||
|
// Release the memory
|
||||||
|
FreeBuf(b);
|
||||||
}
|
}
|
||||||
|
FreeDhcpOptions(o);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,7 +88,6 @@ int ssl_clientcert_index = 0;
|
|||||||
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||||
static OSSL_PROVIDER *ossl_provider_legacy = NULL;
|
static OSSL_PROVIDER *ossl_provider_legacy = NULL;
|
||||||
static OSSL_PROVIDER *ossl_provider_default = NULL;
|
static OSSL_PROVIDER *ossl_provider_default = NULL;
|
||||||
static OSSL_PROVIDER *ossl_provider_oqsprovider = NULL;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
LOCK **ssl_lock_obj = NULL;
|
LOCK **ssl_lock_obj = NULL;
|
||||||
@@ -3975,12 +3974,6 @@ void FreeCryptLibrary()
|
|||||||
OSSL_PROVIDER_unload(ossl_provider_legacy);
|
OSSL_PROVIDER_unload(ossl_provider_legacy);
|
||||||
ossl_provider_legacy = NULL;
|
ossl_provider_legacy = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ossl_provider_oqsprovider != NULL)
|
|
||||||
{
|
|
||||||
OSSL_PROVIDER_unload(ossl_provider_oqsprovider);
|
|
||||||
ossl_provider_oqsprovider = NULL;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4003,7 +3996,6 @@ void InitCryptLibrary()
|
|||||||
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||||
ossl_provider_default = OSSL_PROVIDER_load(NULL, "legacy");
|
ossl_provider_default = OSSL_PROVIDER_load(NULL, "legacy");
|
||||||
ossl_provider_legacy = OSSL_PROVIDER_load(NULL, "default");
|
ossl_provider_legacy = OSSL_PROVIDER_load(NULL, "default");
|
||||||
ossl_provider_oqsprovider = OSSL_PROVIDER_load(NULL, "oqsprovider");
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ssl_clientcert_index = SSL_get_ex_new_index(0, "struct SslClientCertInfo *", NULL, NULL, NULL);
|
ssl_clientcert_index = SSL_get_ex_new_index(0, "struct SslClientCertInfo *", NULL, NULL, NULL);
|
||||||
|
|||||||
+1
-22
@@ -2124,24 +2124,6 @@ IO *FileOpenEx(char *name, bool write_mode, bool read_lock)
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Replace the specified character in the string with a new character
|
|
||||||
wchar_t *UniReplaceCharW(wchar_t *src, UINT size, wchar_t c, wchar_t newc) {
|
|
||||||
if (src == NULL)
|
|
||||||
{
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
for (; *src; src++, size -= sizeof(wchar_t)) {
|
|
||||||
if (size < sizeof(wchar_t)) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (*src == c) {
|
|
||||||
*src = newc;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return (wchar_t *)src;
|
|
||||||
}
|
|
||||||
|
|
||||||
IO *FileOpenExW(wchar_t *name, bool write_mode, bool read_lock)
|
IO *FileOpenExW(wchar_t *name, bool write_mode, bool read_lock)
|
||||||
{
|
{
|
||||||
wchar_t tmp[MAX_SIZE];
|
wchar_t tmp[MAX_SIZE];
|
||||||
@@ -2158,12 +2140,9 @@ IO *FileOpenExW(wchar_t *name, bool write_mode, bool read_lock)
|
|||||||
IO *o = ZeroMalloc(sizeof(IO));
|
IO *o = ZeroMalloc(sizeof(IO));
|
||||||
name++;
|
name++;
|
||||||
UniStrCpy(o->NameW, sizeof(o->NameW), name);
|
UniStrCpy(o->NameW, sizeof(o->NameW), name);
|
||||||
#ifdef OS_WIN32
|
|
||||||
UniReplaceCharW(o->NameW, sizeof(o->NameW), L'\\', L'/'); // Path separator "/" is used.
|
|
||||||
#endif // OS_WIN32
|
|
||||||
UniToStr(o->Name, sizeof(o->Name), o->NameW);
|
UniToStr(o->Name, sizeof(o->Name), o->NameW);
|
||||||
o->HamMode = true;
|
o->HamMode = true;
|
||||||
o->HamBuf = ReadHamcoreW(o->NameW);
|
o->HamBuf = ReadHamcoreW(name);
|
||||||
if (o->HamBuf == NULL)
|
if (o->HamBuf == NULL)
|
||||||
{
|
{
|
||||||
Free(o);
|
Free(o);
|
||||||
|
|||||||
@@ -2568,7 +2568,6 @@ MS_ADAPTER_LIST *MsCreateAdapterListInnerExVista(bool no_info)
|
|||||||
UniStrCpy(a->TitleW, sizeof(a->TitleW), title);
|
UniStrCpy(a->TitleW, sizeof(a->TitleW), title);
|
||||||
UniToStr(a->Title, sizeof(a->Title), title);
|
UniToStr(a->Title, sizeof(a->Title), title);
|
||||||
a->Index = r->InterfaceIndex;
|
a->Index = r->InterfaceIndex;
|
||||||
a->MediaConnectState = r->MediaConnectState;
|
|
||||||
a->Type = r->Type;
|
a->Type = r->Type;
|
||||||
a->Status = ConvertMidStatusVistaToXp(r->OperStatus);
|
a->Status = ConvertMidStatusVistaToXp(r->OperStatus);
|
||||||
a->Mtu = r->Mtu;
|
a->Mtu = r->Mtu;
|
||||||
|
|||||||
@@ -281,7 +281,6 @@ typedef struct MS_ADAPTER
|
|||||||
char Title[MAX_PATH]; // Display name
|
char Title[MAX_PATH]; // Display name
|
||||||
wchar_t TitleW[MAX_PATH]; // Display Name (Unicode)
|
wchar_t TitleW[MAX_PATH]; // Display Name (Unicode)
|
||||||
UINT Index; // Index
|
UINT Index; // Index
|
||||||
UINT MediaConnectState; // Media Connect State
|
|
||||||
UINT Type; // Type
|
UINT Type; // Type
|
||||||
UINT Status; // Status
|
UINT Status; // Status
|
||||||
UINT Mtu; // MTU
|
UINT Mtu; // MTU
|
||||||
|
|||||||
+20
-77
@@ -540,13 +540,6 @@ LIST *Win32GetNicList()
|
|||||||
|
|
||||||
if (a->Type == 6 && a->AddressSize == 6)
|
if (a->Type == 6 && a->AddressSize == 6)
|
||||||
{
|
{
|
||||||
// If the connection state of the interface is unknown, then exclude it.
|
|
||||||
// Unknown means that the device is not plugged into the local host.
|
|
||||||
if (a->MediaConnectState == MediaConnectStateUnknown)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
NIC_ENTRY *e = ZeroMalloc(sizeof(NIC_ENTRY));
|
NIC_ENTRY *e = ZeroMalloc(sizeof(NIC_ENTRY));
|
||||||
|
|
||||||
StrCpy(e->IfName, sizeof(e->IfName), a->Title);
|
StrCpy(e->IfName, sizeof(e->IfName), a->Title);
|
||||||
@@ -11905,10 +11898,6 @@ bool StartSSLEx3(SOCK *sock, X *x, K *priv, LIST *chain, UINT ssl_timeout, char
|
|||||||
Unlock(openssl_lock);
|
Unlock(openssl_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
|
||||||
SSL_set1_groups_list(sock->ssl, PQ_GROUP_LIST);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (sock->ServerMode)
|
if (sock->ServerMode)
|
||||||
{
|
{
|
||||||
// Lock(ssl_connect_lock);
|
// Lock(ssl_connect_lock);
|
||||||
@@ -12289,15 +12278,9 @@ UINT SecureRecv(SOCK *sock, void *data, UINT size)
|
|||||||
Debug("%s %u SecureRecv() Disconnect\n", __FILE__, __LINE__);
|
Debug("%s %u SecureRecv() Disconnect\n", __FILE__, __LINE__);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
ERR_clear_error();
|
|
||||||
ret = SSL_peek(ssl, &c, sizeof(c));
|
ret = SSL_peek(ssl, &c, sizeof(c));
|
||||||
}
|
}
|
||||||
Unlock(sock->ssl_lock);
|
Unlock(sock->ssl_lock);
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x30000000L
|
|
||||||
// 2021/09/10: After OpenSSL 3.x.x, both 0 and negative values might mean retryable.
|
|
||||||
// See: https://github.com/openssl/openssl/blob/435981cbadad2c58c35bacd30ca5d8b4c9bea72f/doc/man3/SSL_read.pod
|
|
||||||
// > Old documentation indicated a difference between 0 and -1, and that -1 was retryable.
|
|
||||||
// > You should instead call SSL_get_error() to find out if it's retryable.
|
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
{
|
{
|
||||||
// The communication have been disconnected
|
// The communication have been disconnected
|
||||||
@@ -12305,8 +12288,7 @@ UINT SecureRecv(SOCK *sock, void *data, UINT size)
|
|||||||
Debug("%s %u SecureRecv() Disconnect\n", __FILE__, __LINE__);
|
Debug("%s %u SecureRecv() Disconnect\n", __FILE__, __LINE__);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
if (ret < 0)
|
||||||
if (ret <= 0)
|
|
||||||
{
|
{
|
||||||
// An error has occurred
|
// An error has occurred
|
||||||
e = SSL_get_error(ssl, ret);
|
e = SSL_get_error(ssl, ret);
|
||||||
@@ -12314,18 +12296,14 @@ UINT SecureRecv(SOCK *sock, void *data, UINT size)
|
|||||||
{
|
{
|
||||||
if (e == SSL_ERROR_SSL
|
if (e == SSL_ERROR_SSL
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||||
&&
|
&&
|
||||||
sock->ssl->s3->send_alert[0] == SSL3_AL_FATAL &&
|
sock->ssl->s3->send_alert[0] == SSL3_AL_FATAL &&
|
||||||
sock->ssl->s3->send_alert[0] != sock->Ssl_Init_Async_SendAlert[0] &&
|
sock->ssl->s3->send_alert[0] != sock->Ssl_Init_Async_SendAlert[0] &&
|
||||||
sock->ssl->s3->send_alert[1] != sock->Ssl_Init_Async_SendAlert[1]
|
sock->ssl->s3->send_alert[1] != sock->Ssl_Init_Async_SendAlert[1]
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINT ssl_err_no;
|
Debug("%s %u SSL Fatal Error on ASYNC socket !!!\n", __FILE__, __LINE__);
|
||||||
while (ssl_err_no = ERR_get_error()){
|
|
||||||
Debug("%s %u SSL_ERROR_SSL on ASYNC socket !!! ssl_err_no = %u: '%s'\n", __FILE__, __LINE__, ssl_err_no, ERR_error_string(ssl_err_no, NULL));
|
|
||||||
};
|
|
||||||
|
|
||||||
Disconnect(sock);
|
Disconnect(sock);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -12352,15 +12330,14 @@ UINT SecureRecv(SOCK *sock, void *data, UINT size)
|
|||||||
}
|
}
|
||||||
#endif // OS_UNIX
|
#endif // OS_UNIX
|
||||||
|
|
||||||
// Run the time-out thread for SOLARIS
|
// Run the time-out thread for SOLARIS
|
||||||
#ifdef UNIX_SOLARIS
|
#ifdef UNIX_SOLARIS
|
||||||
ttparam = NewSocketTimeout(sock);
|
ttparam = NewSocketTimeout(sock);
|
||||||
#endif // UNIX_SOLARIS
|
#endif // UNIX_SOLARIS
|
||||||
|
|
||||||
ERR_clear_error();
|
|
||||||
ret = SSL_read(ssl, data, size);
|
ret = SSL_read(ssl, data, size);
|
||||||
|
|
||||||
// Stop the timeout thread
|
// Stop the timeout thread
|
||||||
#ifdef UNIX_SOLARIS
|
#ifdef UNIX_SOLARIS
|
||||||
FreeSocketTimeout(ttparam);
|
FreeSocketTimeout(ttparam);
|
||||||
#endif // UNIX_SOLARIS
|
#endif // UNIX_SOLARIS
|
||||||
@@ -12373,11 +12350,7 @@ UINT SecureRecv(SOCK *sock, void *data, UINT size)
|
|||||||
}
|
}
|
||||||
#endif // OS_UNIX
|
#endif // OS_UNIX
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x30000000L
|
if (ret < 0)
|
||||||
if (ret < 0) // OpenSSL version < 3.0.0
|
|
||||||
#else
|
|
||||||
if (ret <= 0) // OpenSSL version >= 3.0.0
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
e = SSL_get_error(ssl, ret);
|
e = SSL_get_error(ssl, ret);
|
||||||
}
|
}
|
||||||
@@ -12400,12 +12373,6 @@ UINT SecureRecv(SOCK *sock, void *data, UINT size)
|
|||||||
|
|
||||||
return (UINT)ret;
|
return (UINT)ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x30000000L
|
|
||||||
// 2021/09/10: After OpenSSL 3.x.x, both 0 and negative values might mean retryable.
|
|
||||||
// See: https://github.com/openssl/openssl/blob/435981cbadad2c58c35bacd30ca5d8b4c9bea72f/doc/man3/SSL_read.pod
|
|
||||||
// > Old documentation indicated a difference between 0 and -1, and that -1 was retryable.
|
|
||||||
// > You should instead call SSL_get_error() to find out if it's retryable.
|
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
{
|
{
|
||||||
// Disconnect the communication
|
// Disconnect the communication
|
||||||
@@ -12413,26 +12380,20 @@ UINT SecureRecv(SOCK *sock, void *data, UINT size)
|
|||||||
//Debug("%s %u SecureRecv() Disconnect\n", __FILE__, __LINE__);
|
//Debug("%s %u SecureRecv() Disconnect\n", __FILE__, __LINE__);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (sock->AsyncMode)
|
if (sock->AsyncMode)
|
||||||
{
|
{
|
||||||
if (e == SSL_ERROR_WANT_READ || e == SSL_ERROR_WANT_WRITE || e == SSL_ERROR_SSL)
|
if (e == SSL_ERROR_WANT_READ || e == SSL_ERROR_WANT_WRITE || e == SSL_ERROR_SSL)
|
||||||
{
|
{
|
||||||
if (e == SSL_ERROR_SSL
|
if (e == SSL_ERROR_SSL
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||||
&&
|
&&
|
||||||
sock->ssl->s3->send_alert[0] == SSL3_AL_FATAL &&
|
sock->ssl->s3->send_alert[0] == SSL3_AL_FATAL &&
|
||||||
sock->ssl->s3->send_alert[0] != sock->Ssl_Init_Async_SendAlert[0] &&
|
sock->ssl->s3->send_alert[0] != sock->Ssl_Init_Async_SendAlert[0] &&
|
||||||
sock->ssl->s3->send_alert[1] != sock->Ssl_Init_Async_SendAlert[1]
|
sock->ssl->s3->send_alert[1] != sock->Ssl_Init_Async_SendAlert[1]
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINT ssl_err_no;
|
Debug("%s %u SSL Fatal Error on ASYNC socket !!!\n", __FILE__, __LINE__);
|
||||||
while (ssl_err_no = ERR_get_error()) {
|
|
||||||
Debug("%s %u SSL_ERROR_SSL on ASYNC socket !!! ssl_err_no = %u: '%s'\n", __FILE__, __LINE__, ssl_err_no, ERR_error_string(ssl_err_no, NULL));
|
|
||||||
};
|
|
||||||
|
|
||||||
Disconnect(sock);
|
Disconnect(sock);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -12441,8 +12402,8 @@ UINT SecureRecv(SOCK *sock, void *data, UINT size)
|
|||||||
return SOCK_LATER;
|
return SOCK_LATER;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Debug("%s %u e=%u SecureRecv() Disconnect\n", __FILE__, __LINE__, e);
|
|
||||||
Disconnect(sock);
|
Disconnect(sock);
|
||||||
|
Debug("%s %u SecureRecv() Disconnect\n", __FILE__, __LINE__);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -12469,13 +12430,8 @@ UINT SecureSend(SOCK *sock, void *data, UINT size)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ERR_clear_error();
|
|
||||||
ret = SSL_write(ssl, data, size);
|
ret = SSL_write(ssl, data, size);
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x30000000L
|
if (ret < 0)
|
||||||
if (ret < 0) // OpenSSL version < 3.0.0
|
|
||||||
#else
|
|
||||||
if (ret <= 0) // OpenSSL version >= 3.0.0
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
e = SSL_get_error(ssl, ret);
|
e = SSL_get_error(ssl, ret);
|
||||||
}
|
}
|
||||||
@@ -12497,8 +12453,6 @@ UINT SecureSend(SOCK *sock, void *data, UINT size)
|
|||||||
sock->WriteBlocked = false;
|
sock->WriteBlocked = false;
|
||||||
return (UINT)ret;
|
return (UINT)ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x30000000L
|
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
{
|
{
|
||||||
// Disconnect
|
// Disconnect
|
||||||
@@ -12506,29 +12460,18 @@ UINT SecureSend(SOCK *sock, void *data, UINT size)
|
|||||||
Disconnect(sock);
|
Disconnect(sock);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (sock->AsyncMode)
|
if (sock->AsyncMode)
|
||||||
{
|
{
|
||||||
// Confirmation of the error value
|
// Confirmation of the error value
|
||||||
if (e == SSL_ERROR_WANT_READ || e == SSL_ERROR_WANT_WRITE || e == SSL_ERROR_SSL)
|
if (e == SSL_ERROR_WANT_READ || e == SSL_ERROR_WANT_WRITE || e == SSL_ERROR_SSL)
|
||||||
{
|
{
|
||||||
if (e == SSL_ERROR_SSL)
|
|
||||||
{
|
|
||||||
UINT ssl_err_no;
|
|
||||||
while (ssl_err_no = ERR_get_error()) {
|
|
||||||
Debug("%s %u SSL_ERROR_SSL on ASYNC socket !!! ssl_err_no = %u: '%s'\n", __FILE__, __LINE__, ssl_err_no, ERR_error_string(ssl_err_no, NULL));
|
|
||||||
};
|
|
||||||
|
|
||||||
Disconnect(sock);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
sock->WriteBlocked = true;
|
sock->WriteBlocked = true;
|
||||||
return SOCK_LATER;
|
return SOCK_LATER;
|
||||||
}
|
}
|
||||||
|
Debug("%s %u e=%u\n", __FILE__, __LINE__, e);
|
||||||
}
|
}
|
||||||
Debug("%s %u e=%u SecureSend() Disconnect\n", __FILE__, __LINE__, e);
|
//Debug("%s %u SecureSend() Disconnect\n", __FILE__, __LINE__);
|
||||||
Disconnect(sock);
|
Disconnect(sock);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,10 +59,6 @@ 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
|
|
||||||
#define PQ_GROUP_LIST "p521_kyber1024:x25519_kyber768:P-521:X25519:P-256"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// SSL logging function
|
// SSL logging function
|
||||||
//#define ENABLE_SSL_LOGGING
|
//#define ENABLE_SSL_LOGGING
|
||||||
#define SSL_LOGGING_DIRNAME "@ssl_log"
|
#define SSL_LOGGING_DIRNAME "@ssl_log"
|
||||||
|
|||||||
+2
-5
@@ -4168,7 +4168,6 @@ BUF *DhcpModify(DHCP_MODIFY_OPTION *m, void *data, UINT size)
|
|||||||
LIST *opt_list2 = NULL;
|
LIST *opt_list2 = NULL;
|
||||||
UINT src_size = size;
|
UINT src_size = size;
|
||||||
UINT i;
|
UINT i;
|
||||||
UINT dhcp_min_size;
|
|
||||||
// Validate arguments
|
// Validate arguments
|
||||||
if (m == NULL || data == NULL || size == 0)
|
if (m == NULL || data == NULL || size == 0)
|
||||||
{
|
{
|
||||||
@@ -4271,13 +4270,11 @@ BUF *DhcpModify(DHCP_MODIFY_OPTION *m, void *data, UINT size)
|
|||||||
// Rewrite if anything changes. Do not rewrite if there is no change
|
// Rewrite if anything changes. Do not rewrite if there is no change
|
||||||
ret_ok = true;
|
ret_ok = true;
|
||||||
|
|
||||||
// If src_size is greater than DHCP_MIN_SIZE, then use the src_size as minimum size of DHCP.
|
if (ret->Size < DHCP_MIN_SIZE)
|
||||||
dhcp_min_size = MAX(src_size, DHCP_MIN_SIZE);
|
|
||||||
if (ret->Size < dhcp_min_size)
|
|
||||||
{
|
{
|
||||||
// Padding
|
// Padding
|
||||||
UCHAR *pad_buf;
|
UCHAR *pad_buf;
|
||||||
UINT pad_size = dhcp_min_size - ret->Size;
|
UINT pad_size = DHCP_MIN_SIZE - ret->Size;
|
||||||
|
|
||||||
pad_buf = ZeroMalloc(pad_size);
|
pad_buf = ZeroMalloc(pad_size);
|
||||||
|
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ CK_PKCS11_FUNCTION_INFO(C_GetSlotList)
|
|||||||
(
|
(
|
||||||
CK_BBOOL tokenPresent, /* only slots with tokens? */
|
CK_BBOOL tokenPresent, /* only slots with tokens? */
|
||||||
CK_SLOT_ID_PTR pSlotList, /* receives array of slot IDs */
|
CK_SLOT_ID_PTR pSlotList, /* receives array of slot IDs */
|
||||||
CK_UINT_PTR pulCount /* receives number of slots */
|
CK_ULONG_PTR pulCount /* receives number of slots */
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -351,7 +351,7 @@ CK_PKCS11_FUNCTION_INFO(C_FindObjects)
|
|||||||
CK_SESSION_HANDLE hSession, /* session's handle */
|
CK_SESSION_HANDLE hSession, /* session's handle */
|
||||||
CK_OBJECT_HANDLE_PTR phObject, /* gets obj. handles */
|
CK_OBJECT_HANDLE_PTR phObject, /* gets obj. handles */
|
||||||
CK_ULONG ulMaxObjectCount, /* max handles to get */
|
CK_ULONG ulMaxObjectCount, /* max handles to get */
|
||||||
CK_UINT_PTR pulObjectCount /* actual # returned */
|
CK_ULONG_PTR pulObjectCount /* actual # returned */
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -558,7 +558,7 @@ CK_PKCS11_FUNCTION_INFO(C_Sign)
|
|||||||
CK_BYTE_PTR pData, /* the data to sign */
|
CK_BYTE_PTR pData, /* the data to sign */
|
||||||
CK_ULONG ulDataLen, /* count of bytes to sign */
|
CK_ULONG ulDataLen, /* count of bytes to sign */
|
||||||
CK_BYTE_PTR pSignature, /* gets the signature */
|
CK_BYTE_PTR pSignature, /* gets the signature */
|
||||||
CK_UINT_PTR pulSignatureLen /* gets signature length */
|
CK_ULONG_PTR pulSignatureLen /* gets signature length */
|
||||||
);
|
);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -51,8 +51,6 @@ typedef CK_BYTE CK_BBOOL;
|
|||||||
/* an unsigned value, at least 32 bits long */
|
/* an unsigned value, at least 32 bits long */
|
||||||
typedef unsigned long int CK_ULONG;
|
typedef unsigned long int CK_ULONG;
|
||||||
|
|
||||||
typedef unsigned int CK_UINT;
|
|
||||||
|
|
||||||
/* a signed value, the same size as a CK_ULONG */
|
/* a signed value, the same size as a CK_ULONG */
|
||||||
/* CK_LONG is new for v2.0 */
|
/* CK_LONG is new for v2.0 */
|
||||||
typedef long int CK_LONG;
|
typedef long int CK_LONG;
|
||||||
@@ -70,7 +68,6 @@ typedef CK_BYTE CK_PTR CK_BYTE_PTR;
|
|||||||
typedef CK_CHAR CK_PTR CK_CHAR_PTR;
|
typedef CK_CHAR CK_PTR CK_CHAR_PTR;
|
||||||
typedef CK_UTF8CHAR CK_PTR CK_UTF8CHAR_PTR;
|
typedef CK_UTF8CHAR CK_PTR CK_UTF8CHAR_PTR;
|
||||||
typedef CK_ULONG CK_PTR CK_ULONG_PTR;
|
typedef CK_ULONG CK_PTR CK_ULONG_PTR;
|
||||||
typedef CK_UINT CK_PTR CK_UINT_PTR;
|
|
||||||
typedef void CK_PTR CK_VOID_PTR;
|
typedef void CK_PTR CK_VOID_PTR;
|
||||||
|
|
||||||
/* Pointer to a CK_VOID_PTR-- i.e., pointer to pointer to void */
|
/* Pointer to a CK_VOID_PTR-- i.e., pointer to pointer to void */
|
||||||
@@ -113,7 +110,7 @@ typedef CK_ULONG CK_NOTIFICATION;
|
|||||||
#define CKN_SURRENDER 0
|
#define CKN_SURRENDER 0
|
||||||
|
|
||||||
|
|
||||||
typedef CK_UINT CK_SLOT_ID;
|
typedef CK_ULONG CK_SLOT_ID;
|
||||||
|
|
||||||
typedef CK_SLOT_ID CK_PTR CK_SLOT_ID_PTR;
|
typedef CK_SLOT_ID CK_PTR CK_SLOT_ID_PTR;
|
||||||
|
|
||||||
@@ -265,7 +262,7 @@ typedef CK_TOKEN_INFO CK_PTR CK_TOKEN_INFO_PTR;
|
|||||||
|
|
||||||
/* CK_SESSION_HANDLE is a Cryptoki-assigned value that
|
/* CK_SESSION_HANDLE is a Cryptoki-assigned value that
|
||||||
* identifies a session */
|
* identifies a session */
|
||||||
typedef CK_UINT CK_SESSION_HANDLE;
|
typedef CK_ULONG CK_SESSION_HANDLE;
|
||||||
|
|
||||||
typedef CK_SESSION_HANDLE CK_PTR CK_SESSION_HANDLE_PTR;
|
typedef CK_SESSION_HANDLE CK_PTR CK_SESSION_HANDLE_PTR;
|
||||||
|
|
||||||
@@ -313,7 +310,7 @@ typedef CK_SESSION_INFO CK_PTR CK_SESSION_INFO_PTR;
|
|||||||
|
|
||||||
/* CK_OBJECT_HANDLE is a token-specific identifier for an
|
/* CK_OBJECT_HANDLE is a token-specific identifier for an
|
||||||
* object */
|
* object */
|
||||||
typedef CK_UINT CK_OBJECT_HANDLE;
|
typedef CK_ULONG CK_OBJECT_HANDLE;
|
||||||
|
|
||||||
typedef CK_OBJECT_HANDLE CK_PTR CK_OBJECT_HANDLE_PTR;
|
typedef CK_OBJECT_HANDLE CK_PTR CK_OBJECT_HANDLE_PTR;
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ ERR_48 Не удалось подключиться к контроллер
|
|||||||
ERR_49 Контроллеру кластера не удалось установить новую сессию в кластере.
|
ERR_49 Контроллеру кластера не удалось установить новую сессию в кластере.
|
||||||
ERR_50 Не удается управлять Virtual Hub-ом сервера-члена кластера.
|
ERR_50 Не удается управлять Virtual Hub-ом сервера-члена кластера.
|
||||||
ERR_51 Удаленное подключение запрещено, т.к. использован пустой пароль пользователя. Пустой пароль может быть разрешен только для соединений с локального хоста VPN-сервера (127.0.0.1).
|
ERR_51 Удаленное подключение запрещено, т.к. использован пустой пароль пользователя. Пустой пароль может быть разрешен только для соединений с локального хоста VPN-сервера (127.0.0.1).
|
||||||
ERR_52 Недостаточно прав.
|
ERR_52 Не достаточно прав.
|
||||||
ERR_53 Указанный порт прослушивания не найден.
|
ERR_53 Указанный порт прослушивания не найден.
|
||||||
ERR_54 Указанный порт прослушивания уже существует.
|
ERR_54 Указанный порт прослушивания уже существует.
|
||||||
ERR_55 Этот сервер не член кластера.
|
ERR_55 Этот сервер не член кластера.
|
||||||
@@ -2421,8 +2421,8 @@ STATIC17 Другие конфигурации:
|
|||||||
R_NO_ROUTING Не вносить изменения в таблицу маршрутизации
|
R_NO_ROUTING Не вносить изменения в таблицу маршрутизации
|
||||||
STATIC18 Если у вас нет опыта работы с сетью и безопасностью, то оставьте настройки в этом окне по умолчанию.
|
STATIC18 Если у вас нет опыта работы с сетью и безопасностью, то оставьте настройки в этом окне по умолчанию.
|
||||||
STATIC19 Функции VoIP/QoS обрабатывают пакеты (например VoIP) с высоким приоритетом для более быстрой передачи.
|
STATIC19 Функции VoIP/QoS обрабатывают пакеты (например VoIP) с высоким приоритетом для более быстрой передачи.
|
||||||
STATIC20 IP адрес источника:
|
STATIC20 Source IP Address:
|
||||||
STATIC21 Номер порта:
|
STATIC21 Source Port Number:
|
||||||
R_DISABLE_QOS Отключить функции VoIP / QoS
|
R_DISABLE_QOS Отключить функции VoIP / QoS
|
||||||
IDOK &OK
|
IDOK &OK
|
||||||
IDCANCEL Отмена
|
IDCANCEL Отмена
|
||||||
@@ -2524,7 +2524,7 @@ STATIC2 Имя Virtual &Hub:
|
|||||||
STATIC3 &Пользователь:
|
STATIC3 &Пользователь:
|
||||||
STATIC4 &Старый пароль:
|
STATIC4 &Старый пароль:
|
||||||
STATIC5 &Новый пароль:
|
STATIC5 &Новый пароль:
|
||||||
STATIC6 &Подтвердить пароль:
|
STATIC6 &Подтвердить новый пароль:
|
||||||
IDOK &OK
|
IDOK &OK
|
||||||
IDCANCEL Отмена
|
IDCANCEL Отмена
|
||||||
S_STATIC Примечание: Вы не сможете изменить пароль пользователя, если выбран тип авторизации "RADIUS или авторизация в домене".
|
S_STATIC Примечание: Вы не сможете изменить пароль пользователя, если выбран тип авторизации "RADIUS или авторизация в домене".
|
||||||
@@ -2533,7 +2533,7 @@ S_STATIC Примечание: Вы не сможете изменить па
|
|||||||
PREFIX D_SM_MAIN
|
PREFIX D_SM_MAIN
|
||||||
CAPTION SoftEther VPN-сервер менеджер Developer Edition
|
CAPTION SoftEther VPN-сервер менеджер Developer Edition
|
||||||
STATIC1 Настройки подключения для VPN-сервера:
|
STATIC1 Настройки подключения для VPN-сервера:
|
||||||
STATIC2 Настройки подключения для VPN-сервера или VPN-моста. Чтобы подключиться к серверу дважды щелкните по его названию.\r\nЧтобы добавить новое подключение, нажмите "Новое подключение".
|
STATIC2 Настройки подключения для VPN-сервера или VPN-моста. Чтобы подключиться к серверу дважды щелкните по его названию.\r\n Чтобы добавить новое подключение, нажмите "Новое подключение".
|
||||||
B_NEW_SETTING &Создать
|
B_NEW_SETTING &Создать
|
||||||
B_EDIT_SETTING &Изменить
|
B_EDIT_SETTING &Изменить
|
||||||
B_DELETE &Удалить
|
B_DELETE &Удалить
|
||||||
@@ -2558,9 +2558,9 @@ STATIC8 Прокси-сервер:
|
|||||||
STATIC9 Вы можете подключиться к VPN-серверу через прокси-сервер.
|
STATIC9 Вы можете подключиться к VPN-серверу через прокси-сервер.
|
||||||
STATIC10 Тип прокси:
|
STATIC10 Тип прокси:
|
||||||
R_DIRECT_TCP &Прямое TCP/IP соединение (без прокси)
|
R_DIRECT_TCP &Прямое TCP/IP соединение (без прокси)
|
||||||
R_HTTPS Через HTTP прокси-сервер
|
R_HTTPS Подключиться через HTTP прокси-сервер
|
||||||
R_SOCKS Через SOCKS прокси-сервер
|
R_SOCKS Подключиться через SOCKS прокси-сервер
|
||||||
R_SOCKS5 Через SOCKS5 прокси-сервер
|
R_SOCKS5 Подключиться через SOCKS5 прокси-сервер
|
||||||
B_PROXY_CONFIG Настройки прокси-сервера
|
B_PROXY_CONFIG Настройки прокси-сервера
|
||||||
STATIC11 Выберите режим администрирования и введите пароль
|
STATIC11 Выберите режим администрирования и введите пароль
|
||||||
STATIC12 Вы можете подключиться к VPN-серверу, используя либо режим администратора сервера, либо режим Virtual Hub администратора. \r\n\r\nРежим администратора сервера позволяет вам управлять VPN-сервером и всеми Virtual Hub. \r\n\r\nРежим Virtual Hub администратора позволяет вам управлять только одним Virtual Hub, на который у вас есть права.
|
STATIC12 Вы можете подключиться к VPN-серверу, используя либо режим администратора сервера, либо режим Virtual Hub администратора. \r\n\r\nРежим администратора сервера позволяет вам управлять VPN-сервером и всеми Virtual Hub. \r\n\r\nРежим Virtual Hub администратора позволяет вам управлять только одним Virtual Hub, на который у вас есть права.
|
||||||
@@ -4111,7 +4111,7 @@ S_LATEST_STR Версия %S%s
|
|||||||
|
|
||||||
PREFIX D_UPDATE_CONFIG
|
PREFIX D_UPDATE_CONFIG
|
||||||
CAPTION Настройка уведомлений об обновлении
|
CAPTION Настройка уведомлений об обновлении
|
||||||
S_INFO Периодически проверяет новые версии %s и показывает уведомление, когда будет выпущена новая версия.\r\n\r\nДля проверки обновлений будут использоваться HTTPS пакеты между этим компьютером и сервером обновлений SoftEther, расположенным в городе Цукуба, префектура Ибараки, Япония. Никакая личная информация отправляться не будет.
|
S_INFO Периодически проверяет новые версии %s и показывает уведомление, когда будет выпущена новая версия.\r\n\r\nДля проверки обновлений будут использоваться HTTPS пакеты между этим компьютером и сервером обновлений SoftEther, расположенным в городе Цукуба, префектура Ибараки, Япония. Никакая личная информация отправляться не будет.
|
||||||
S_TITLE %s настройки уведомлений об обновлении
|
S_TITLE %s настройки уведомлений об обновлении
|
||||||
S_ENABLE &Включить проверку обновлений
|
S_ENABLE &Включить проверку обновлений
|
||||||
S_DISABLE &Отключить проверку обновлений
|
S_DISABLE &Отключить проверку обновлений
|
||||||
|
|||||||
+13
-15
@@ -373,23 +373,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"braces": {
|
"braces": {
|
||||||
"version": "3.0.3",
|
"version": "3.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
|
||||||
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
|
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"fill-range": "^7.1.1"
|
"fill-range": "^7.0.1"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"fill-range": {
|
|
||||||
"version": "7.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
|
|
||||||
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"to-regex-range": "^5.0.1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
@@ -614,6 +603,15 @@
|
|||||||
"integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==",
|
"integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"fill-range": {
|
||||||
|
"version": "7.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
|
||||||
|
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"to-regex-range": "^5.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"find-up": {
|
"find-up": {
|
||||||
"version": "4.1.0",
|
"version": "4.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
|
||||||
|
|||||||
Reference in New Issue
Block a user