]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Detect windows hosts to add specific workarounds.
authorTobias Brunner <tobias@strongswan.org>
Tue, 1 Dec 2009 17:18:49 +0000 (18:18 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 12 Feb 2010 09:57:39 +0000 (10:57 +0100)
src/pluto/demux.h
src/pluto/vendor.c

index 4faf6e532f80120409352051037d3bed54d42378..2161bbd02be73bc9588a48e4144cd52b0ba4ee89 100644 (file)
@@ -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
index 7d3c96c879ba6c3cb9b3b14f5d614866122aa7da..bb7167fffa2fc1d36dd2ffc070cfb9ca75ec64ab 100644 (file)
@@ -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