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

Commit

Permalink
Convert OIDs to uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
jornane authored Mar 13, 2023
1 parent 8e29847 commit 28553c1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,11 @@ public class WifiEapConfigurator: CAPPlugin {
let hs20 = NEHotspotHS20Settings(
domainName: domain,
roamingEnabled: true)
hs20.roamingConsortiumOIs = oids;
// oids should be 3 or 5 byte HEX strings (so 6 or 10 hexits)
// in the API, these are represented by a string that contains hexits.
// Hexits are by themselves case-insensitive, but apparently
// iOS has trouble when they are lowercased, so we uppercase them.
hs20.roamingConsortiumOIs = oids.map { $0.uppercased() };
configurations.append(NEHotspotConfiguration(hs20Settings: hs20, eapSettings: eapSettings))
}
}
Expand Down

0 comments on commit 28553c1

Please sign in to comment.