Post

Replies

Boosts

Views

Activity

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