Date: Tue, 20 Feb 2018 20:52:02 +0000 (UTC) From: Kurt Jaeger <pi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r462449 - in head/security/softether: . files Message-ID: <201802202052.w1KKq2iW067152@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@vmeta.jp> Approved by: net@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802202052.w1KKq2iW067152>