diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-04-13 04:30:50 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-04-13 04:30:50 -0400 |
commit | 01e62e9baaf5860f0b9dee39e985a89333c0a854 (patch) | |
tree | 1305097c8943d56edfc7cf9a06016a30fb1ce195 /tests/set4.rs | |
parent | c48a2b579673d4f4034bb7275165b72077e60fbd (diff) | |
download | matasano-01e62e9baaf5860f0b9dee39e985a89333c0a854.tar.gz matasano-01e62e9baaf5860f0b9dee39e985a89333c0a854.zip |
adjust the signature of create_query_string a bit
Diffstat (limited to 'tests/set4.rs')
-rw-r--r-- | tests/set4.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/set4.rs b/tests/set4.rs index 5095b6a..89581e2 100644 --- a/tests/set4.rs +++ b/tests/set4.rs @@ -215,12 +215,12 @@ fn problem_31() { let file = "filename.txt"; let got = matasano::crack_hmac_timing(file, |guess| { let mut params = std::collections::HashMap::new(); - params.insert("file", file); - params.insert("signature", guess); + params.insert("file", file.to_string()); + params.insert("signature", guess.to_string()); let res = reqwest::get(&format!( "{}{}", "http://localhost:9000/?", - matasano::create_query_string(params) + matasano::create_query_string(¶ms) )) .unwrap(); let status = res.status(); |