diff options
author | Neal H. Walfield <neal@pep.foundation> | 2022-01-24 00:38:20 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2022-01-24 08:42:45 +0100 |
commit | f514ec66f472fd99b6c7340986824ac99b1590f3 (patch) | |
tree | 0f11caa75ad454e09d3ed4a735de861ff5eeca13 | |
parent | ed59f76e3bf1895d7f7948f2aecf139e4161c475 (diff) |
sq: When looking for a User ID, don't require that it be UTF-8.
-rw-r--r-- | sq/src/commands/revoke.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sq/src/commands/revoke.rs b/sq/src/commands/revoke.rs index 3a375492..1561c433 100644 --- a/sq/src/commands/revoke.rs +++ b/sq/src/commands/revoke.rs @@ -229,10 +229,8 @@ key material")); if ! config.force { let vc = cert.with_policy(NP, None)?; let present = vc.userids().any(|u| { - if let Ok(u) = String::from_utf8(u.value().to_vec()) { - if &u == userid { - return true; - } + if u.value() == userid.as_bytes() { + return true; } false }); |