Skip to content

CoreWLAN macOS xcode9 beta1

Vincent Dondain edited this page Jun 5, 2017 · 3 revisions

#CoreWLAN.framework

diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWInterface.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWInterface.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWInterface.h	2016-05-03 18:21:23.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWInterface.h	2017-05-11 21:50:56.000000000 -0400
@@ -353,9 +353,6 @@
  *
  * @abstract 
  * Sets the Wi-Fi interface power state.
- *
- * @discussion
- * Requires the <i>com.apple.wifi.set_power</i> entitlement.
  */
 - (BOOL)setPower:(BOOL)power error:(out NSError **)error NS_AVAILABLE_MAC(10_6);
 
@@ -379,7 +376,6 @@
  *
  * @discussion 
  * Setting the channel while the interface is associated to a Wi-Fi network is not permitted.
- * Requires the <i>com.apple.wifi.set_channel</i> entitlement.
  */
 - (BOOL)setWLANChannel:(CWChannel *)channel error:(out NSError **)error NS_AVAILABLE_MAC(10_7);
 
@@ -402,9 +398,8 @@
  * @abstract 
  * Sets the Wi-Fi interface pairwise master key (PMK).
  *
- * @discussion 
+ * @discussion
  * The specified key must be exactly 32 octets. 
- * Requires the <i>com.apple.wifi.set_pmk</i> entitlement.
  */
 - (BOOL)setPairwiseMasterKey:(nullable NSData *)key error:(out NSError **)error NS_AVAILABLE_MAC(10_6);
 
@@ -430,9 +425,6 @@
  *
  * @abstract 
  * Sets the Wi-Fi interface WEP key.
- *
- * @discussion
- * Requires the <i>com.apple.wifi.set_wep_key</i> entitlement.
  */
 - (BOOL)setWEPKey:(nullable NSData *)key flags:(CWCipherKeyFlags)flags index:(NSInteger)index error:(out NSError **)error NS_AVAILABLE_MAC(10_6);
 
@@ -458,7 +450,6 @@
  *
  * @discussion 
  * This method will block for the duration of the scan.
- * Requires the <i>com.apple.wifi.scan</i> entitlement.
  */
 - (nullable NSSet<CWNetwork *> *)scanForNetworksWithSSID:(nullable NSData *)ssid error:(out NSError **)error NS_AVAILABLE_MAC(10_7);
 
@@ -482,7 +473,6 @@
  *
  * @discussion
  * This method will block for the duration of the scan.
- * Requires the <i>com.apple.wifi.scan</i> entitlement.
  */
 - (nullable NSSet<CWNetwork *> *)scanForNetworksWithName:(nullable NSString *)networkName error:(out NSError **)error NS_AVAILABLE_MAC(10_7);
 
@@ -509,7 +499,6 @@
  *
  * @discussion 
  * This method will block for the duration of the association.
- * Requires the <i>com.apple.wifi.associate</i> entitlement.
  */
 - (BOOL)associateToNetwork:(CWNetwork *)network password:(nullable NSString *)password error:(out NSError **)error NS_AVAILABLE_MAC(10_7);
 
@@ -520,7 +509,6 @@
  * Disassociates from the current Wi-Fi network.
  *
  * @discussion
- * Requires the <i>com.apple.wifi.associate</i> entitlement.
  */
 - (void)disassociate NS_AVAILABLE_MAC(10_6);
 
@@ -551,7 +539,6 @@
  *
  * @discussion
  * This method will block for the duration of the association.
- * Requires the <i>com.apple.wifi.associate</i> entitlement.
  */
 - (BOOL)associateToEnterpriseNetwork:(CWNetwork *)network identity:(nullable SecIdentityRef)identity username:(nullable NSString *)username password:(nullable NSString *)password error:(out NSError **)error NS_AVAILABLE_MAC(10_7);
 
@@ -582,9 +569,6 @@
  *
  * @abstract
  * Creates a computer-to-computer (IBSS) network.
- *
- * @discussion
- * Requires the <i>com.apple.wifi.ibss</i> entitlement.
  */
 - (BOOL)startIBSSModeWithSSID:(NSData *)ssidData security:(CWIBSSModeSecurity)security channel:(NSUInteger)channel password:(nullable NSString *)password error:(out NSError **)error NS_AVAILABLE_MAC(10_7);
 
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWNetworkProfile.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWNetworkProfile.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWNetworkProfile.h	2016-09-23 18:59:52.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWNetworkProfile.h	2017-05-11 21:50:56.000000000 -0400
@@ -17,24 +17,26 @@
  */
 NS_ASSUME_NONNULL_BEGIN
 NS_CLASS_AVAILABLE_MAC(10_7)
-@interface CWNetworkProfile : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
-{
-	NSData          *_ssidData;
+@interface CWNetworkProfile : NSObject <NSCopying, NSMutableCopying, NSSecureCoding> {
+    
+    NSData          *_ssidData;
     
     NSString        *_ssid;
-	
+    
     NSUInteger      _securityType;
-	
+    
     BOOL            _disabled;
-	
+    
     BOOL            _systemMode;
-	
+    
     BOOL            _hiddenNetwork;
-	
+    
     NSDate          *_lastConnected;
-	
-    BOOL            _captiveNetwork;
-	
+    
+    NSInteger       _captiveNetworkStatus;
+    
+    BOOL            _wasCaptiveNetwork;
+    
     BOOL            _temporarilyDisabled;
     
     BOOL            _autoLogin;
@@ -56,12 +58,18 @@
     NSSet           *_collocatedGroup;
     
     NSSet           *_channelHistory;
-        
+    
     NSInteger       _roamingProfileType;
     
     BOOL            _isPersonalHotspot;
     
     NSArray         *_bssidList;
+    
+    NSInteger       _shareMode;
+    
+    NSInteger       _userRole;
+    
+    NSString        *_payloadUUID;
 }
 
 /*!
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWWiFiClient.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWWiFiClient.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWWiFiClient.h	2016-09-23 18:59:52.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreWLAN.framework/Headers/CWWiFiClient.h	2017-05-11 21:50:56.000000000 -0400
@@ -239,7 +239,7 @@
         
         dispatch_queue_t    _mutex;
         
-        __weak id           _delegate;
+        id                  _delegate;
 }
 
 /*! @functiongroup Setting the Delegate */
@@ -345,9 +345,6 @@
  *
  * @abstract 
  * Register for specific Wi-Fi event notifications.
- * 
- * @discussion
- * Requires the <i>com.apple.wifi.events</i> entitlement.
  */
 - (BOOL)startMonitoringEventWithType:(CWEventType)type error:(out NSError **)error NS_AVAILABLE_MAC(10_10);
 
@@ -366,9 +363,6 @@
  *
  * @abstract
  * Unregister for specific Wi-Fi event notifications.
- *
- * @discussion
- * Requires the <i>com.apple.wifi.events</i> entitlement.
  */
 - (BOOL)stopMonitoringEventWithType:(CWEventType)type error:(out NSError **)error NS_AVAILABLE_MAC(10_10);
 
@@ -384,9 +378,6 @@
  *
  * @abstract
  * Unregister for all Wi-Fi event notifications.
- *
- * @discussion
- * Requires the <i>com.apple.wifi.events</i> entitlement.
  */
 - (BOOL)stopMonitoringAllEventsAndReturnError:(out NSError **)error NS_AVAILABLE_MAC(10_10);
 
Clone this wiki locally