svn commit: r462449 - in head/security/softether: . files
Kurt Jaeger
pi at FreeBSD.org
Tue Feb 20 20:52:03 UTC 2018
Author: pi
Date: Tue Feb 20 20:52:02 2018
New Revision: 462449
URL: https://svnweb.freebsd.org/changeset/ports/462449
Log:
security/softether: add unlock regional lockout option
PR: 225751
Submitted by: Koichiro IWAO <meta+ports at vmeta.jp>
Approved by: net at arrishq.net (maintainer)
Added:
head/security/softether/files/extra-patch-unrestrict-enterprise-functions (contents, props changed)
Modified:
head/security/softether/Makefile
Modified: head/security/softether/Makefile
==============================================================================
--- head/security/softether/Makefile Tue Feb 20 20:28:59 2018 (r462448)
+++ head/security/softether/Makefile Tue Feb 20 20:52:02 2018 (r462449)
@@ -35,7 +35,17 @@ DOS2UNIX_FILES= AUTHORS.TXT ChangeLog LICENSE README T
src/Mayaqua/Table.h \
src/Mayaqua/Unix.c
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS UNLOCK
+
+# Use of some functions in Japan and China is restricted.
+# This option Unlocks regional lockout following functions:
+# - RADIUS / NT Domain user authentication function
+# - RSA certificate user authentication function
+# - Deep-inspect packet logging function
+# - Source IP address control list function
+# - syslog transfer function
+UNLOCK_DESC= Unlock regional lockout (JP and CN)
+UNLOCK_EXTRA_PATCHES= ${FILESDIR}/extra-patch-unrestrict-enterprise-functions
ONLY_FOR_ARCHS= i386 amd64
Added: head/security/softether/files/extra-patch-unrestrict-enterprise-functions
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/softether/files/extra-patch-unrestrict-enterprise-functions Tue Feb 20 20:52:02 2018 (r462449)
@@ -0,0 +1,29 @@
+diff --git src/Cedar/Server.c src/Cedar/Server.c
+index 2a100ec..ee58f37 100644
+--- src/Cedar/Server.c
++++ src/Cedar/Server.c
+@@ -10859,23 +10859,7 @@ bool SiCheckCurrentRegion(CEDAR *c, char *r)
+ //
+ 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
More information about the svn-ports-head
mailing list