mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-24 10:29:53 +03:00
Compare commits
8 Commits
a836b3bd5e
...
882269e4db
Author | SHA1 | Date | |
---|---|---|---|
882269e4db | |||
8e8cb4d4f3 | |||
9b97568dc9 | |||
aeb9330ddb | |||
48b536d732 | |||
3087e03e0c | |||
619ca3d915 | |||
36c018b1d9 |
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -10,9 +10,3 @@
|
|||||||
[submodule "src/libhamcore"]
|
[submodule "src/libhamcore"]
|
||||||
path = src/libhamcore
|
path = src/libhamcore
|
||||||
url = https://github.com/SoftEtherVPN/libhamcore.git
|
url = https://github.com/SoftEtherVPN/libhamcore.git
|
||||||
[submodule "src/Mayaqua/3rdparty/oqs-provider"]
|
|
||||||
path = src/Mayaqua/3rdparty/oqs-provider
|
|
||||||
url = https://github.com/open-quantum-safe/oqs-provider.git
|
|
||||||
[submodule "src/Mayaqua/3rdparty/liboqs"]
|
|
||||||
path = src/Mayaqua/3rdparty/liboqs
|
|
||||||
url = https://github.com/open-quantum-safe/liboqs.git
|
|
||||||
|
@ -2103,7 +2103,7 @@ void StopL2TPThread(L2TP_SERVER *l2tp, L2TP_TUNNEL *t, L2TP_SESSION *s)
|
|||||||
// Interrupt processing of L2TP server
|
// Interrupt processing of L2TP server
|
||||||
void L2TPProcessInterrupts(L2TP_SERVER *l2tp)
|
void L2TPProcessInterrupts(L2TP_SERVER *l2tp)
|
||||||
{
|
{
|
||||||
UINT i, j;
|
UINT i, j, k;
|
||||||
LIST *delete_tunnel_list = NULL;
|
LIST *delete_tunnel_list = NULL;
|
||||||
// Validate arguments
|
// Validate arguments
|
||||||
if (l2tp == NULL)
|
if (l2tp == NULL)
|
||||||
@ -2138,9 +2138,9 @@ void L2TPProcessInterrupts(L2TP_SERVER *l2tp)
|
|||||||
UINT64 l2tpTimeout = L2TP_TUNNEL_TIMEOUT;
|
UINT64 l2tpTimeout = L2TP_TUNNEL_TIMEOUT;
|
||||||
|
|
||||||
// If we got on ANY session a higher timeout than the default L2TP tunnel timeout, increase it
|
// If we got on ANY session a higher timeout than the default L2TP tunnel timeout, increase it
|
||||||
for (i = 0; i < LIST_NUM(t->SessionList); i++)
|
for (k = 0; k < LIST_NUM(t->SessionList); k++)
|
||||||
{
|
{
|
||||||
L2TP_SESSION* s = LIST_DATA(t->SessionList, i);
|
L2TP_SESSION* s = LIST_DATA(t->SessionList, k);
|
||||||
|
|
||||||
if (s->TubeRecv != NULL && s->TubeRecv->DataTimeout > l2tpTimeout)
|
if (s->TubeRecv != NULL && s->TubeRecv->DataTimeout > l2tpTimeout)
|
||||||
{
|
{
|
||||||
|
2
src/Mayaqua/3rdparty/Findliboqs.cmake
vendored
2
src/Mayaqua/3rdparty/Findliboqs.cmake
vendored
@ -1,2 +0,0 @@
|
|||||||
set(oqs_FOUND TRUE)
|
|
||||||
add_library(OQS::oqs ALIAS oqs)
|
|
1
src/Mayaqua/3rdparty/liboqs
vendored
1
src/Mayaqua/3rdparty/liboqs
vendored
@ -1 +0,0 @@
|
|||||||
Subproject commit 51ddd33cc04d12bd47c8639c1254714879f4cdf3
|
|
1
src/Mayaqua/3rdparty/oqs-provider
vendored
1
src/Mayaqua/3rdparty/oqs-provider
vendored
@ -1 +0,0 @@
|
|||||||
Subproject commit 8f37521d5e27ab4d1e0d69a4b4a5bd17927b24b9
|
|
@ -18,22 +18,6 @@ set_target_properties(mayaqua
|
|||||||
|
|
||||||
find_package(OpenSSL REQUIRED)
|
find_package(OpenSSL REQUIRED)
|
||||||
|
|
||||||
if(OPENSSL_VERSION VERSION_LESS "3") # Disable oqsprovider when OpenSSL version < 3
|
|
||||||
add_definitions(-DSKIP_OQS_PROVIDER)
|
|
||||||
else()
|
|
||||||
set(OQS_BUILD_ONLY_LIB ON CACHE BOOL "Set liboqs to build only the library (no tests)")
|
|
||||||
set(BUILD_TESTING OFF CACHE BOOL "By setting this to OFF, no tests or examples will be compiled.")
|
|
||||||
set(OQS_PROVIDER_BUILD_STATIC ON CACHE BOOL "Build a static library instead of a shared library") # Build oqsprovider as a static library (defaults to shared)
|
|
||||||
list(PREPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/src/Mayaqua/3rdparty/")
|
|
||||||
|
|
||||||
add_subdirectory(3rdparty/liboqs)
|
|
||||||
add_subdirectory(3rdparty/oqs-provider)
|
|
||||||
|
|
||||||
target_include_directories(oqsprovider PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/3rdparty/liboqs/include)
|
|
||||||
set_property(TARGET oqsprovider PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
||||||
target_link_libraries(mayaqua PRIVATE oqsprovider)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
include(CheckSymbolExists)
|
include(CheckSymbolExists)
|
||||||
|
|
||||||
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
|
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
|
||||||
|
@ -42,10 +42,6 @@
|
|||||||
#include <openssl/x509v3.h>
|
#include <openssl/x509v3.h>
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||||
#include <openssl/provider.h>
|
#include <openssl/provider.h>
|
||||||
// Static oqsprovider initialization function
|
|
||||||
#ifndef SKIP_OQS_PROVIDER
|
|
||||||
extern OSSL_provider_init_fn oqs_provider_init;
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
@ -4009,13 +4005,7 @@ 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");
|
||||||
char *oqs_provider_name = "oqsprovider";
|
|
||||||
#ifndef SKIP_OQS_PROVIDER
|
|
||||||
// Registers "oqsprovider" as a provider -- necessary because oqsprovider is built in now.
|
|
||||||
OSSL_PROVIDER_add_builtin(NULL, oqs_provider_name, oqs_provider_init);
|
|
||||||
#endif
|
|
||||||
ossl_provider_oqsprovider = OSSL_PROVIDER_load(NULL, oqs_provider_name);
|
|
||||||
#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);
|
||||||
|
Loading…
Reference in New Issue
Block a user