Re: Another Proxy question..
Re: Another Proxy question..
- Subject: Re: Another Proxy question..
- From: Quinn <email@hidden>
- Date: Tue, 1 Apr 2003 09:19:12 +0100
At 17:29 -0500 31/3/03, Francois Boissonneault wrote:
So here I go - I am actually using Internet Config and the same code
was working good on Mac Os 9. Now that I've moved everything to Mac
Os X, I still can use the ICGetPref and get the right proxy values,
but ICSetPref gives me a -667 error - which would be: "Preference
can't be set".
Now I figured out that it probably had something to do with
permissions but I think I'm not sure to dig in the right way since I
didn't find any information around this on apple..
Actually, this has nothing to do with permissions. The proxy
preferences are held in System Configuration framework (SCF).
Because SCF has a richer proxy model than IC, there's no way to
gateway the IC settings back to SCF. Hence, all attempts to set the
proxies via IC will fail with that error.
If you want to set the proxy preferences, you will have to use SCF
directly. At that point you will run into permissions problems. You
have to be running with an EUID of 0 (ie as root) to modify any SCF
preferences. MoreAuthSample shows our recommended technique for
doing this.
<
http://developer.apple.com/samplecode/Sample_Code/Security/MoreAuthSample.htm>
I've seen there that Internet Config has been "moved out of carbon
and into the new HIServices framework" in Mac Os 10.2 and I'm using
10.2.4 and it's still seems to be also in carbon.. And it would be
preferable if this project would not have to load to much stuff from
frameworks.. (using CFGetFunctionPointerForName..)
HIServices falls under Carbon's umbrella, so you can still link to
the IC functions directly. The key advantage of this change is that
HIServices is also directly accessible to Cocoa applications.
Previously accessing IC from a Cocoa application could be problematic.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.