mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-18 00:00:22 -04:00
Try to detect Windows Clients by looking for INTERNAL_IP4/6_SERVER attribute
This commit is contained in:
parent
5c0ab65cae
commit
61cf9f512c
@ -97,6 +97,11 @@ enum ike_extension_t {
|
|||||||
* peer supports EAP-only authentication, draft-eronen-ipsec-ikev2-eap-auth
|
* peer supports EAP-only authentication, draft-eronen-ipsec-ikev2-eap-auth
|
||||||
*/
|
*/
|
||||||
EXT_EAP_ONLY_AUTHENTICATION = (1<<5),
|
EXT_EAP_ONLY_AUTHENTICATION = (1<<5),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* peer is probably a Windows 7 RAS client
|
||||||
|
*/
|
||||||
|
EXT_MS_WINDOWS = (1<<6),
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -174,6 +174,11 @@ static void process_attribute(private_ike_config_t *this,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case INTERNAL_IP4_SERVER:
|
||||||
|
case INTERNAL_IP6_SERVER:
|
||||||
|
/* assume it's a Windows client if we see proprietary attributes */
|
||||||
|
this->ike_sa->enable_extension(this->ike_sa, EXT_MS_WINDOWS);
|
||||||
|
/* fall */
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
if (this->initiator)
|
if (this->initiator)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user