Skip to content

Commit 53dc640

Browse files
address Jean's review comments
Signed-off-by: Thomas Fossati <[email protected]>
1 parent a79b2c5 commit 53dc640

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/token/realm.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ bitmask! {
2828
HashAlg = 0x10,
2929
Rak = 0x20,
3030
RakHashAlg = 0x40,
31-
Profile = 0x80,
31+
Profile = 0x80,
3232
}
3333
}
3434

@@ -89,6 +89,8 @@ impl Realm {
8989
}
9090

9191
fn parse(&mut self, contents: Vec<(Value, Value)>) -> Result<(), Error> {
92+
// Extract the profile claim first. This is because the RAK claim
93+
// (44237) has different encodings depending on the profile value.
9294
for (k, v) in contents.iter() {
9395
if let Value::Integer(i) = k {
9496
match (*i).into() {

0 commit comments

Comments
 (0)