From: Tobias Brunner Date: Tue, 1 Dec 2009 17:18:49 +0000 (+0100) Subject: Detect windows hosts to add specific workarounds. X-Git-Tag: 4.4.0~308 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38da64fe12cf6fd969fa67ad8e32bdeed365c3dc;p=thirdparty%2Fstrongswan.git Detect windows hosts to add specific workarounds. --- diff --git a/src/pluto/demux.h b/src/pluto/demux.h index 4faf6e532f..2161bbd02b 100644 --- a/src/pluto/demux.h +++ b/src/pluto/demux.h @@ -61,6 +61,7 @@ struct msg_digest { notification_t note; /* reason for failure */ bool dpd; /* peer supports RFC 3706 DPD */ bool openpgp; /* peer supports OpenPGP certificates */ + bool ms_nt5; /* peer is a windows 2000+ host */ # define PAYLIMIT 40 struct payload_digest diff --git a/src/pluto/vendor.c b/src/pluto/vendor.c index 7d3c96c879..bb7167fffa 100644 --- a/src/pluto/vendor.c +++ b/src/pluto/vendor.c @@ -382,6 +382,12 @@ static void handle_known_vendorid (struct msg_digest *md, const char *vidstr, vid_useful = TRUE; break; + /* Remote side is a Windows 2000+ host */ + case VID_MS_NT5: + md->ms_nt5 = TRUE; + vid_useful = TRUE; + break; + /* * Use most recent supported NAT-Traversal method and ignore the * other ones (implementations will send all supported methods but