Fix according the new Rust nightly.
authorUmmon <greg.burri@gmail.com>
Fri, 5 Dec 2014 20:38:53 +0000 (21:38 +0100)
committerUmmon <greg.burri@gmail.com>
Fri, 5 Dec 2014 20:38:53 +0000 (21:38 +0100)
lab1_rust/Cargo.lock
lab1_rust/src/main.rs

index 9dcb782..d718268 100644 (file)
@@ -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)",
 ]
index 3beee95..80551f8 100644 (file)
@@ -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)