diff options
| author | Kevin Ballard <[email protected]> | 2013-05-29 23:42:07 -0700 |
|---|---|---|
| committer | Kevin Ballard <[email protected]> | 2013-05-29 23:42:07 -0700 |
| commit | 2eba04e579048bb33a7a99cb738d5d9118909026 (patch) | |
| tree | 624777ef967533e7fcb40575a55de4058a37ee68 /symm.rs | |
| parent | Update for current incoming (diff) | |
| download | rust-openssl-2eba04e579048bb33a7a99cb738d5d9118909026.tar.xz rust-openssl-2eba04e579048bb33a7a99cb738d5d9118909026.zip | |
Update for latest incoming (3a3bf8b)
Diffstat (limited to 'symm.rs')
| -rw-r--r-- | symm.rs | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,4 +1,5 @@ use std::libc::{c_int, c_uint}; +use std::{libc,vec}; #[allow(non_camel_case_types)] type EVP_CIPHER_CTX = *libc::c_void; @@ -236,11 +237,11 @@ mod tests { let computed = cipher.update(pt.from_hex()) + cipher.final(); if computed != expected { - io::println(fmt!("Computed: %s", computed.to_hex())); - io::println(fmt!("Expected: %s", expected.to_hex())); + println(fmt!("Computed: %s", computed.to_hex())); + println(fmt!("Expected: %s", expected.to_hex())); if computed.len() != expected.len() { - io::println(fmt!("Lengths differ: %u in computed vs %u expected", - computed.len(), expected.len())); + println(fmt!("Lengths differ: %u in computed vs %u expected", + computed.len(), expected.len())); } fail!(~"test failure"); } |