Hi eskimo,
I tried this out very quick, but code is giving panic
NSString * onexuser
NSString * onexpass (Just for reference to check correct data type)
NSData * nssid = network.anyObject.ssidData; (here network is CWNetwork Object, so I can get ssidData and also verified that Hex O/P is correct)
NSLog(@"NSSData: %@", nssid);
CWKeychainDomain d = 2;
OSStatus tp = [CWKeychainSetWiFiEAPUsernameAndPassword:d ssid:nssid username:onexuser password:onexpass];
Thanks.
Looks like I was wrong on above reply, go can not compile ARC as per this discussion, https://github.com/progrium/macdriver/discussions/194. So I am still not sure go compilation and memory management part. But here is good article on https://github.com/progrium/macdriver/blob/main/docs/memorymanagement.md though still it lacks some practical info though.
Hi eskimo,
I tried this out very quick, but code is giving panic
NSString * onexuser
NSString * onexpass (Just for reference to check correct data type)
NSData * nssid = network.anyObject.ssidData; (here network is CWNetwork Object, so I can get ssidData and also verified that Hex O/P is correct)
NSLog(@"NSSData: %@", nssid);
CWKeychainDomain d = 2;
OSStatus tp = [CWKeychainSetWiFiEAPUsernameAndPassword:d ssid:nssid username:onexuser password:onexpass];
Thanks.
Looks like I was wrong on above reply, go can not compile ARC as per this discussion, https://github.com/progrium/macdriver/discussions/194. So I am still not sure go compilation and memory management part. But here is good article on https://github.com/progrium/macdriver/blob/main/docs/memorymanagement.md though still it lacks some practical info though.