From 38da64fe12cf6fd969fa67ad8e32bdeed365c3dc Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 1 Dec 2009 18:18:49 +0100 Subject: [PATCH] Detect windows hosts to add specific workarounds. --- src/pluto/demux.h | 1 + src/pluto/vendor.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/pluto/demux.h b/src/pluto/demux.h index 4faf6e532..2161bbd02 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 7d3c96c87..bb7167fff 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