OpenAFS 1.6.x does not require the use of SDK 6.0 or above.
Therefore the Advanced Internet Connection Firewall support
may not be available. In particular, the 32-bit distribution
for 1.6.x does not rely on SDK 6.0 or higher.
This is a 1.6.x only change.
Reviewed-on: http://gerrit.openafs.org/6841
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
(cherry picked from commit
c533e10d2bb5d6f22ee54e2c43af06f13db037d1)
Change-Id: Id4269d2af010ac832ef17db8fb82e82409aab81b
Reviewed-on: http://gerrit.openafs.org/6842
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
#endif
};
+#ifdef NET_FW_PROFILE2_ALL
HRESULT icf_CheckAndAddPorts2(WCHAR * wServiceName, global_afs_port_t * ports, int nPorts)
{
INetFwPolicy2 *pNetFwPolicy2 = NULL;
return 0;
}
-
+#endif /* NET_FW_PROFILE2_ALL */
HRESULT icf_OpenFirewallProfile(INetFwProfile ** fwProfile)
{
// not necessarily catastrophic if the call failed. We'll try to
// continue as if it succeeded.
+#ifdef NET_FW_PROFILE2_ALL
hr = icf_CheckAndAddPorts2(wServiceName, ports, nports);
- if (FAILED(hr)) {
+ if (FAILED(hr))
+#endif
+ {
DEBUGOUT(("INetFwProfile2 failed, trying INetFwProfile\n"));
hr = icf_OpenFirewallProfile(&fwProfile);
if (FAILED(hr)) {