10
0
Fork 0
mirror of https://github.com/ZeusWPI/ZNS.git synced 2024-11-22 05:41:11 +01:00
This commit is contained in:
Xander Bil 2024-08-22 17:11:17 +02:00
parent 81457941ac
commit 4ff625ca56
No known key found for this signature in database
GPG key ID: EC9706B54A278598

View file

@ -17,10 +17,7 @@ pub trait PublicKey {
let type_size = reader.read_i32()?; let type_size = reader.read_i32()?;
let read = reader.read(type_size as usize)?; let read = reader.read(type_size as usize)?;
let algo_type = from_utf8(&read).map_err(|e| ZNSError::Key { let algo_type = from_utf8(&read).map_err(|e| ZNSError::Key {
message: format!( message: format!("Could not convert type name bytes to string: {}", e),
"Could not convert type name bytes to string: {}",
e
),
})?; })?;
if algo_type == key_type { if algo_type == key_type {