• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: IPSec not a "supported" protocol for PPP interfaces?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IPSec not a "supported" protocol for PPP interfaces?


  • Subject: Re: IPSec not a "supported" protocol for PPP interfaces?
  • From: Nathan Duran <email@hidden>
  • Date: Thu, 10 Jan 2008 15:50:27 -0800


On Dec 20, 2007, at 10:28 AM, Allan Nathanson wrote:

"IPSec" is not a protocol type.

OK, so why, when I call SCNetworkServiceCopyProtocols on an Apple created L2TP service, is there one named "IPSec" in the array that is returned?


CFArrayRef	services	= SCNetworkServiceCopyAll(prefs);
int		serviceCount	= CFArrayGetCount(services);

while ( serviceCount-- )
{
SCNetworkServiceRef curService = CFArrayGetValueAtIndex(services, serviceCount);
CFStringRef serviceName = SCNetworkServiceGetName(curService);

if ( CFEqual(serviceName, CFSTR("VPN (L2TP)")) )
{
SCNetworkInterfaceRef firstLayer = SCNetworkServiceGetInterface(curService);
CFArrayRef supportedProtocols = SCNetworkInterfaceGetSupportedProtocolTypes(firstLayer);


		CFShow(supportedProtocols);

CFArrayRef protocols = SCNetworkServiceCopyProtocols(curService);
int protoCount = CFArrayGetCount(protocols);

while ( protoCount-- )
{
SCNetworkProtocolRef curProto = CFArrayGetValueAtIndex(protocols, protoCount);
CFStringRef protoName = SCNetworkProtocolGetProtocolType(curProto);
CFDictionaryRef protoConfig = SCNetworkProtocolGetConfiguration(curProto);

CFShow(protoName); //Second element will be "IPSec"
CFShow(protoConfig);
}
}
}
_______________________________________________
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
  • Follow-Ups:
    • Re: IPSec not a "supported" protocol for PPP interfaces?
      • From: Allan Nathanson <email@hidden>
  • Prev by Date: RE: Multicast listening
  • Next by Date: Re: IPSec not a "supported" protocol for PPP interfaces?
  • Previous by thread: Re: Crashes when implicitly accessing the Keychain from NSURL
  • Next by thread: Re: IPSec not a "supported" protocol for PPP interfaces?
  • Index(es):
    • Date
    • Thread