|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
We really need a fix for this problem! The problem is pretty clear,
the CFNetwork layer is assuming that the scheme (e.g. ftp, http, https)
can be mapped directly into a service principal. This works for ftp,
but not for http (they test for and drop the 's'). Here is a
patch: --- CFHTTPAuthentication.c 2005-09-30 21:09:05.118012864 -0700 +++ CFHTTPAuthentication.c.fixed 2005-09-30 21:11:30.516734591 -0700 @@ -2052,16 +2052,19 @@ UInt8* hostname = _CFStringGetOrCreateCString(alloc, host, buf1, &len, kCFStringEncodingASCII); UInt8* servicetype; len = sizeof(buf2); servicetype = _CFStringGetOrCreateCString(alloc, scheme, buf2, &len, kCFStringEncodingASCII); if (!strcmp(servicetype, "https")) servicetype[4] = '\0'; + + if (!strcmp(servicetype, "http")) + strcpy(servicetype, "HTTP"); if (!GetSvcTicketForHost(hostname, servicetype, &tktLen, &ticket)) { result->_preferred = current_scheme; } if (hostname != buf1) CFAllocatorDeallocate(alloc, hostname); All this does is check for "http" and maps it to "HTTP" before calling GetSvcTicketForHost. I believe that this will fix the problem and not have any deleterious impact. -- scooter Becky Willrich wrote: |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.