<rdar://problem/5472130> Support NTLM authentication via CFNetwork.
authoradachan <adachan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Sep 2007 18:29:36 +0000 (18:29 +0000)
committeradachan <adachan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Sep 2007 18:29:36 +0000 (18:29 +0000)
        Reviewed by Darin.

        * platform/network/ProtectionSpace.h:
        (WebCore::):
        * platform/network/cf/AuthenticationCF.cpp:
        (WebCore::createCF):
        (WebCore::core):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25497 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/network/ProtectionSpace.h
WebCore/platform/network/cf/AuthenticationCF.cpp

index a92734e986daf69d5c1f3ad275968c174f4d32f9..f0c1a7c8a09cc0ad988ea51e53444d62244e6a2a 100644 (file)
@@ -1,3 +1,15 @@
+2007-09-11  Ada Chan  <adachan@apple.com>
+
+        <rdar://problem/5472130> Support NTLM authentication via CFNetwork.
+
+        Reviewed by Darin.
+
+        * platform/network/ProtectionSpace.h:
+        (WebCore::):
+        * platform/network/cf/AuthenticationCF.cpp:
+        (WebCore::createCF):
+        (WebCore::core):
+
 2007-09-11  Darin Adler  <darin@apple.com>
 
         Rubber-stamped by Dave Harrison.
index 53c26823a091184cc20c4c7d0adc1dacb063eee9..9a73cff6372c2dd144c5f334f8bf16be106712f2 100644 (file)
@@ -45,6 +45,8 @@ enum ProtectionSpaceAuthenticationScheme {
   ProtectionSpaceAuthenticationSchemeHTTPBasic = 2,
   ProtectionSpaceAuthenticationSchemeHTTPDigest = 3,
   ProtectionSpaceAuthenticationSchemeHTMLForm = 4,
+  ProtectionSpaceAuthenticationSchemeNTLM = 5,
+  ProtectionSpaceAuthenticationSchemeNegotiate = 6,
 };
 
 class ProtectionSpace {
index f2921ec438e90b285a6c151bcd997f95f7672ec7..37ec730665c022fc6b08365c06e1b0f0021ee361 100644 (file)
@@ -134,6 +134,12 @@ CFURLProtectionSpaceRef createCF(const ProtectionSpace& coreSpace)
     case ProtectionSpaceAuthenticationSchemeHTMLForm:
         scheme = kCFURLProtectionSpaceAuthenticationSchemeHTMLForm;
         break;
+    case ProtectionSpaceAuthenticationSchemeNTLM:
+        scheme = kCFURLProtectionSpaceAuthenticationSchemeNTLM;
+        break;
+    case ProtectionSpaceAuthenticationSchemeNegotiate:
+        scheme = kCFURLProtectionSpaceAuthenticationSchemeNegotiate;
+        break;
     default:
         ASSERT_NOT_REACHED();
     }
@@ -213,6 +219,12 @@ ProtectionSpace core(CFURLProtectionSpaceRef cfSpace)
     case kCFURLProtectionSpaceAuthenticationSchemeHTMLForm:
         scheme = ProtectionSpaceAuthenticationSchemeHTMLForm;
         break;
+    case kCFURLProtectionSpaceAuthenticationSchemeNTLM:
+        scheme = ProtectionSpaceAuthenticationSchemeNTLM;
+        break;
+    case kCFURLProtectionSpaceAuthenticationSchemeNegotiate:
+        scheme = ProtectionSpaceAuthenticationSchemeNegotiate;
+        break;
     default:
         ASSERT_NOT_REACHED();
     }