Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit 28553c1

Browse files
authored
Convert OIDs to uppercase
1 parent 8e29847 commit 28553c1

File tree

1 file changed

+5
-1
lines changed
  • geteduroam/plugins/wifi-eap-configurator/ios/Plugin

1 file changed

+5
-1
lines changed

geteduroam/plugins/wifi-eap-configurator/ios/Plugin/Plugin.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,11 @@ public class WifiEapConfigurator: CAPPlugin {
224224
let hs20 = NEHotspotHS20Settings(
225225
domainName: domain,
226226
roamingEnabled: true)
227-
hs20.roamingConsortiumOIs = oids;
227+
// oids should be 3 or 5 byte HEX strings (so 6 or 10 hexits)
228+
// in the API, these are represented by a string that contains hexits.
229+
// Hexits are by themselves case-insensitive, but apparently
230+
// iOS has trouble when they are lowercased, so we uppercase them.
231+
hs20.roamingConsortiumOIs = oids.map { $0.uppercased() };
228232
configurations.append(NEHotspotConfiguration(hs20Settings: hs20, eapSettings: eapSettings))
229233
}
230234
}

0 commit comments

Comments
 (0)