Update for latest master (0.9-pre b5bab85)
This commit is contained in:
parent
7c05f58ac7
commit
ee4d0b4d2b
2
hash.rs
2
hash.rs
|
|
@ -22,7 +22,7 @@ mod libcrypto {
|
||||||
use super::*;
|
use super::*;
|
||||||
use std::libc::c_uint;
|
use std::libc::c_uint;
|
||||||
|
|
||||||
#[link_args = "-lcrypto"]
|
#[link(name = "crypto")]
|
||||||
extern {
|
extern {
|
||||||
pub fn EVP_MD_CTX_create() -> EVP_MD_CTX;
|
pub fn EVP_MD_CTX_create() -> EVP_MD_CTX;
|
||||||
pub fn EVP_MD_CTX_destroy(ctx: EVP_MD_CTX);
|
pub fn EVP_MD_CTX_destroy(ctx: EVP_MD_CTX);
|
||||||
|
|
|
||||||
2
hmac.rs
2
hmac.rs
|
|
@ -27,7 +27,7 @@ pub struct HMAC_CTX {
|
||||||
key: [libc::c_uchar, ..128]
|
key: [libc::c_uchar, ..128]
|
||||||
}
|
}
|
||||||
|
|
||||||
#[link_args = "-lcrypto"]
|
#[link(name = "crypto")]
|
||||||
extern {
|
extern {
|
||||||
fn HMAC_CTX_init(ctx: *mut HMAC_CTX, key: *u8, keylen: libc::c_int, md: EVP_MD);
|
fn HMAC_CTX_init(ctx: *mut HMAC_CTX, key: *u8, keylen: libc::c_int, md: EVP_MD);
|
||||||
|
|
||||||
|
|
|
||||||
2
pkcs5.rs
2
pkcs5.rs
|
|
@ -4,7 +4,7 @@ use std::vec;
|
||||||
mod libcrypto {
|
mod libcrypto {
|
||||||
use std::libc::c_int;
|
use std::libc::c_int;
|
||||||
|
|
||||||
#[link_args = "-lcrypto"]
|
#[link(name = "crypto")]
|
||||||
extern {
|
extern {
|
||||||
pub fn PKCS5_PBKDF2_HMAC_SHA1(pass: *u8, passlen: c_int,
|
pub fn PKCS5_PBKDF2_HMAC_SHA1(pass: *u8, passlen: c_int,
|
||||||
salt: *u8, saltlen: c_int,
|
salt: *u8, saltlen: c_int,
|
||||||
|
|
|
||||||
2
pkey.rs
2
pkey.rs
|
|
@ -15,7 +15,7 @@ mod libcrypto {
|
||||||
use super::*;
|
use super::*;
|
||||||
use std::libc::{c_char, c_int, c_uint};
|
use std::libc::{c_char, c_int, c_uint};
|
||||||
|
|
||||||
#[link_args = "-lcrypto"]
|
#[link(name = "crypto")]
|
||||||
extern {
|
extern {
|
||||||
pub fn EVP_PKEY_new() -> *EVP_PKEY;
|
pub fn EVP_PKEY_new() -> *EVP_PKEY;
|
||||||
pub fn EVP_PKEY_free(k: *EVP_PKEY);
|
pub fn EVP_PKEY_free(k: *EVP_PKEY);
|
||||||
|
|
|
||||||
2
rand.rs
2
rand.rs
|
|
@ -4,7 +4,7 @@ use std::vec;
|
||||||
mod libcrypto {
|
mod libcrypto {
|
||||||
use std::libc::c_int;
|
use std::libc::c_int;
|
||||||
|
|
||||||
#[link_args = "-lcrypto"]
|
#[link(name = "crypto")]
|
||||||
extern {
|
extern {
|
||||||
pub fn RAND_bytes(buf: *mut u8, num: c_int) -> c_int;
|
pub fn RAND_bytes(buf: *mut u8, num: c_int) -> c_int;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue