Case insensitive comparison of ident.

This commit is contained in:
Heiko Schaefer 2021-11-16 17:48:14 +01:00
parent 0089c211ae
commit 13c8769ea3
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -84,7 +84,7 @@ fn main() -> Result<(), Box<dyn Error>> {
// Try not to overwrite your production cards. // Try not to overwrite your production cards.
// --------------------------------------------- // ---------------------------------------------
assert_eq!(app_id.ident(), test_card_ident); assert_eq!(app_id.ident(), test_card_ident.to_ascii_uppercase());
let check = open.check_admin_verified(); let check = open.check_admin_verified();
println!("has admin (pw3) been verified yet?\n{:x?}\n", check); println!("has admin (pw3) been verified yet?\n{:x?}\n", check);
@ -155,7 +155,7 @@ fn main() -> Result<(), Box<dyn Error>> {
// Check that we're still using the expected card // Check that we're still using the expected card
let app_id = open.application_identifier()?; let app_id = open.application_identifier()?;
assert_eq!(app_id.ident(), test_card_ident); assert_eq!(app_id.ident(), test_card_ident.to_ascii_uppercase());
let check = open.check_user_verified(); let check = open.check_user_verified();
println!("has user (pw1/82) been verified yet?\n{:x?}\n", check); println!("has user (pw1/82) been verified yet?\n{:x?}\n", check);