]> granicus.if.org Git - curl/commitdiff
basic NTLM support
authorDaniel Stenberg <daniel@haxx.se>
Wed, 11 Jun 2003 13:44:31 +0000 (13:44 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 11 Jun 2003 13:44:31 +0000 (13:44 +0000)
tests/server/sws.c

index 1223e015883c36fb1c57f67415b9d57690fd27bf..07b37a25f825a14fc92b9b07a7de9db8146d6609 100644 (file)
@@ -297,6 +297,14 @@ static int get_request(int sock, int *part)
            Digest stuff to work in the test suite. */
         *part = 1000;
       }
+      else if(strstr(reqbuf, "Authorization: NTLM TlRMTVNTUAAD")) {
+        /* If the client is passing this type-3 NTLM header */
+        *part = 1002;
+      }
+      else if(strstr(reqbuf, "Authorization: NTLM TlRMTVNTUAAB")) {
+        /* If the client is passing this type-1 NTLM header */
+        *part = 1001;
+      }
     }
     else {
       if(sscanf(reqbuf, "CONNECT %" MAXDOCNAMELEN_TXT "s HTTP/%d.%d",