Update to rust 0.9x-pre

This commit is contained in:
Erick Tryzelaar 2013-12-18 07:32:42 -08:00
parent 4e0257ab59
commit 9dd1c622f4
4 changed files with 4 additions and 3 deletions

View File

@ -5,3 +5,4 @@ install:
- sudo apt-get install rust-nightly - sudo apt-get install rust-nightly
script: script:
- make all - make all
- ./crypto

View File

@ -56,7 +56,7 @@ pub fn HMAC(ht: HashType, key: ~[u8]) -> HMAC {
}; };
HMAC_CTX_init(&mut ctx, HMAC_CTX_init(&mut ctx,
vec::raw::to_ptr(key), key.as_ptr(),
key.len() as libc::c_int, key.len() as libc::c_int,
evp); evp);

View File

@ -35,7 +35,7 @@ pub fn pbkdf2_hmac_sha1(pass: &str, salt: &[u8], iter: uint,
if r != 1 as c_int { fail!(); } if r != 1 as c_int { fail!(); }
}); });
unsafe { vec::raw::set_len(&mut out, keylen); } unsafe { out.set_len(keylen); }
out out
}) })

View File

@ -18,7 +18,7 @@ pub fn rand_bytes(len: uint) -> ~[u8] {
if r != 1 as c_int { fail!() } if r != 1 as c_int { fail!() }
}); });
unsafe { vec::raw::set_len(&mut out, len); } unsafe { out.set_len(len); }
out out
} }