commit
aba30b530b
|
|
@ -5,6 +5,7 @@ use std::ptr;
|
||||||
use ssl::error::SslError;
|
use ssl::error::SslError;
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
|
#[repr(C)]
|
||||||
struct BIGNUM {
|
struct BIGNUM {
|
||||||
d: *mut c_void,
|
d: *mut c_void,
|
||||||
top: c_int,
|
top: c_int,
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ pub enum HashType {
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
|
#[repr(C)]
|
||||||
pub struct EVP_MD_CTX {
|
pub struct EVP_MD_CTX {
|
||||||
digest: *mut EVP_MD,
|
digest: *mut EVP_MD,
|
||||||
engine: *mut libc::c_void,
|
engine: *mut libc::c_void,
|
||||||
|
|
@ -24,9 +25,11 @@ pub struct EVP_MD_CTX {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
|
#[repr(C)]
|
||||||
pub struct EVP_MD;
|
pub struct EVP_MD;
|
||||||
|
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
|
#[repr(C)]
|
||||||
pub struct EVP_PKEY_CTX;
|
pub struct EVP_PKEY_CTX;
|
||||||
|
|
||||||
#[link(name = "crypto")]
|
#[link(name = "crypto")]
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ use crypto::hash;
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
|
#[repr(C)]
|
||||||
pub struct HMAC_CTX {
|
pub struct HMAC_CTX {
|
||||||
md: *mut hash::EVP_MD,
|
md: *mut hash::EVP_MD,
|
||||||
md_ctx: hash::EVP_MD_CTX,
|
md_ctx: hash::EVP_MD_CTX,
|
||||||
|
|
@ -37,6 +38,7 @@ extern {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
|
#[repr(C)]
|
||||||
struct ENGINE;
|
struct ENGINE;
|
||||||
|
|
||||||
pub struct HMAC {
|
pub struct HMAC {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue