aboutsummaryrefslogtreecommitdiff
path: root/symm.rs
diff options
context:
space:
mode:
authorKevin Ballard <[email protected]>2013-05-29 23:42:07 -0700
committerKevin Ballard <[email protected]>2013-05-29 23:42:07 -0700
commit2eba04e579048bb33a7a99cb738d5d9118909026 (patch)
tree624777ef967533e7fcb40575a55de4058a37ee68 /symm.rs
parentUpdate for current incoming (diff)
downloadrust-openssl-2eba04e579048bb33a7a99cb738d5d9118909026.tar.xz
rust-openssl-2eba04e579048bb33a7a99cb738d5d9118909026.zip
Update for latest incoming (3a3bf8b)
Diffstat (limited to 'symm.rs')
-rw-r--r--symm.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/symm.rs b/symm.rs
index 1cb8ed44..e483a079 100644
--- a/symm.rs
+++ b/symm.rs
@@ -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");
}