Commit 9dd1c622 authored by Erick Tryzelaar's avatar Erick Tryzelaar
Browse files

Update to rust 0.9x-pre

parent 4e0257ab
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5,3 +5,4 @@ install:
  - sudo apt-get install rust-nightly
script:
  - make all
  - ./crypto
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ pub fn HMAC(ht: HashType, key: ~[u8]) -> HMAC {
        };

        HMAC_CTX_init(&mut ctx,
                                 vec::raw::to_ptr(key),
                                 key.as_ptr(),
                                 key.len() as libc::c_int,
                                 evp);

+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ pub fn pbkdf2_hmac_sha1(pass: &str, salt: &[u8], iter: uint,
                if r != 1 as c_int { fail!(); }
            });

            unsafe { vec::raw::set_len(&mut out, keylen); }
            unsafe { out.set_len(keylen); }

            out
        })
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ pub fn rand_bytes(len: uint) -> ~[u8] {
        if r != 1 as c_int { fail!() }
    });

    unsafe { vec::raw::set_len(&mut out, len); }
    unsafe { out.set_len(len); }

    out
}