In open_by_ident(), call to_ascii_uppercase() on user-provided ident (for case insensitive comparison).

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

View file

@ -41,7 +41,7 @@ impl PcscClient {
let ard = ca.get_application_related_data()?; let ard = ca.get_application_related_data()?;
let aid = ard.get_application_id()?; let aid = ard.get_application_id()?;
if aid.ident() == ident { if aid.ident() == ident.to_ascii_uppercase() {
return Ok(ca); return Ok(ca);
} }
} }