Files
ports/security/softether/files/patch-unrestrict-enterprise-functions
Koichiro Iwao 8bff1591cf security/softether{,-devel}: clarify license of patches
as per request from a user.

While here, minor fixes in comment.
2025-08-18 09:58:21 +09:00

30 lines
650 B
Plaintext

# Copyright (c) 2019, Koichiro Iwao <meta@FreeBSD.org> (https://github.com/metalefty)
# SPDX-License-Identifier: Apache-2.0
--- src/Cedar/Server.c.orig 2016-04-24 14:49:31 UTC
+++ src/Cedar/Server.c
@@ -10822,23 +10822,7 @@ bool SiCheckCurrentRegion(CEDAR *c, char
//
bool SiIsEnterpriseFunctionsRestrictedOnOpenSource(CEDAR *c)
{
- char region[128];
- bool ret = false;
- // Validate arguments
- if (c == NULL)
- {
- return false;
- }
-
-
- SiGetCurrentRegion(c, region, sizeof(region));
-
- if (StrCmpi(region, "JP") == 0 || StrCmpi(region, "CN") == 0)
- {
- ret = true;
- }
-
- return ret;
+ return false;
}
// Update the current region