From caf6b34147c52f94cb08e66c9d1af44089a3f493 Mon Sep 17 00:00:00 2001 From: Ummon Date: Fri, 5 Dec 2014 21:38:53 +0100 Subject: [PATCH] Fix according the new Rust nightly. --- lab1_rust/Cargo.lock | 4 ++-- lab1_rust/src/main.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lab1_rust/Cargo.lock b/lab1_rust/Cargo.lock index 9dcb782..d718268 100644 --- a/lab1_rust/Cargo.lock +++ b/lab1_rust/Cargo.lock @@ -8,7 +8,7 @@ dependencies = [ [[package]] name = "openssl" version = "0.2.2" -source = "git+https://github.com/sfackler/rust-openssl.git#2901c279ab154933385fda86c620f87d3392a36d" +source = "git+https://github.com/sfackler/rust-openssl.git#b8a41f79a1a78791dddd453db0aab5f0957152fc" dependencies = [ "openssl-sys 0.2.2 (git+https://github.com/sfackler/rust-openssl.git)", ] @@ -16,7 +16,7 @@ dependencies = [ [[package]] name = "openssl-sys" version = "0.2.2" -source = "git+https://github.com/sfackler/rust-openssl.git#2901c279ab154933385fda86c620f87d3392a36d" +source = "git+https://github.com/sfackler/rust-openssl.git#b8a41f79a1a78791dddd453db0aab5f0957152fc" dependencies = [ "pkg-config 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/lab1_rust/src/main.rs b/lab1_rust/src/main.rs index 3beee95..80551f8 100644 --- a/lab1_rust/src/main.rs +++ b/lab1_rust/src/main.rs @@ -28,7 +28,7 @@ fn do_oracle_attack(address: &str, variant: packet::Variant) { */ match oracle_machine::decipher(address, PORT, &xor_operand, &cipher_block, variant) { - Some(ref deciphered) if deciphered.as_slice() == &expected_plain_block => { + Some(ref deciphered) if deciphered.as_slice() == expected_plain_block => { println!("The oracle machine has found the plain block!:"); println!(" Expected block: {}", expected_plain_block.to_vec()); println!(" Decrypted block: {}", deciphered) -- 2.43.0