Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/SoftEtherVPN_Stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Cedar/Command.c')
-rw-r--r--src/Cedar/Command.c37
1 files changed, 16 insertions, 21 deletions
diff --git a/src/Cedar/Command.c b/src/Cedar/Command.c
index 31bf8a29..4d226257 100644
--- a/src/Cedar/Command.c
+++ b/src/Cedar/Command.c
@@ -1,19 +1,19 @@
// SoftEther VPN Source Code - Stable Edition Repository
// Cedar Communication Module
//
-// SoftEther VPN Server, Client and Bridge are free software under GPLv2.
+// SoftEther VPN Server, Client and Bridge are free software under the Apache License, Version 2.0.
//
// Copyright (c) Daiyuu Nobori.
// Copyright (c) SoftEther VPN Project, University of Tsukuba, Japan.
// Copyright (c) SoftEther Corporation.
+Copyright (c) all contributors on SoftEther VPN project in GitHub.
//
// All Rights Reserved.
//
// http://www.softether.org/
//
-// Author: Daiyuu Nobori, Ph.D.
-// Comments: Tetsuo Sugiyama, Ph.D.
-//
+// This stable branch is officially managed by Daiyuu Nobori, the owner of SoftEther VPN Project.
+// Pull requests should be sent to the Developer Edition Master Repository on https://github.com/SoftEtherVPN/SoftEtherVPN
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// version 2 as published by the Free Software Foundation.
@@ -711,6 +711,14 @@ bool CheckMemory()
}
Free(pp);
+ // OpenSSL Check
+ if (RsaCheckEx() == false)
+ {
+ // Abort
+ Print("RsaCheck(): OpenSSL Library Init Failed. (too old?)\nPlease install the latest version of OpenSSL.\n\n");
+ ok = false;
+ }
+
return ok;
}
@@ -19395,30 +19403,17 @@ UINT PsDhcpDisable(CONSOLE *c, char *cmd_name, wchar_t *str, void *param)
}
else
{
- bool ok = true;
-
t.UseDhcp = false;
- if (ok == false)
+ ret = ScSetSecureNATOption(ps->Rpc, &t);
+
+ if (ret != ERR_NO_ERROR)
{
- // Parameter is invalid
- ret = ERR_INVALID_PARAMETER;
+ // An error has occured
CmdPrintError(c, ret);
FreeParamValueList(o);
return ret;
}
- else
- {
- ret = ScSetSecureNATOption(ps->Rpc, &t);
-
- if (ret != ERR_NO_ERROR)
- {
- // An error has occured
- CmdPrintError(c, ret);
- FreeParamValueList(o);
- return ret;
- }
- }
}
FreeParamValueList(o);