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/Cedar.c')
-rw-r--r--src/Cedar/Cedar.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Cedar/Cedar.c b/src/Cedar/Cedar.c
index 73fcf085..49841778 100644
--- a/src/Cedar/Cedar.c
+++ b/src/Cedar/Cedar.c
@@ -118,6 +118,34 @@ static UINT init_cedar_counter = 0;
static REF *cedar_log_ref = NULL;
static LOG *cedar_log;
+// Check whether there is any EAP-enabled RADIUS configuration
+bool CedarIsThereAnyEapEnabledRadiusConfig(CEDAR *c)
+{
+ bool ret = false;
+ UINT i;
+ if (c == NULL)
+ {
+ return false;
+ }
+
+ LockHubList(c);
+ {
+ for (i = 0;i < LIST_NUM(c->HubList);i++)
+ {
+ HUB *hub = LIST_DATA(c->HubList, i);
+
+ if (hub->RadiusConvertAllMsChapv2AuthRequestToEap)
+ {
+ ret = true;
+ break;
+ }
+ }
+ }
+ UnlockHubList(c);
+
+ return ret;
+}
+
// Get build date of current code
UINT64 GetCurrentBuildDate()
{