Post

Replies

Boosts

Views

Activity

Comment on Memory management between Objective-C Core WLAN Functions called from Go lang
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.
Aug ’23
Comment on Getting error -108 while setting eap username and password through CoreWLAN
NSString * onexuser = [[NSString alloc] initWithUTF8String:cOnexuser]; NSString * onexpass = [[NSString alloc] initWithUTF8String:cOnexpass]; NSData * nssid = [@"Testing" dataUsingEncoding:NSUTF8StringEncoding]; NSLog(@"NSSData: %@", nssid); CWKeychainDomain d = kCWKeychainDomainUser; OSStatus err; err = CWKeychainSetWiFiEAPUsernameAndPassword(d, nssid, onexuser, onexpass); NSLog(@"Status: %d", err); }```
Aug ’23
Comment on How to add Enterprise SSID with username and password stored in keychain
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.
Mar ’23