diff options
| author | Steven Fackler <[email protected]> | 2015-01-28 13:02:55 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-01-28 13:02:55 -0800 |
| commit | 8b47daae66db425574fe85a687a7a09966feb1b3 (patch) | |
| tree | faf581a7f8739ae16af648c1caf386e0085672c6 /openssl-sys/src | |
| parent | Release v0.2.18 (diff) | |
| parent | Rename crypto::hash::HashType -> Type (diff) | |
| download | rust-openssl-8b47daae66db425574fe85a687a7a09966feb1b3.tar.xz rust-openssl-8b47daae66db425574fe85a687a7a09966feb1b3.zip | |
Merge pull request #141 from gkoz/borrow_mut
Improve Hasher and HMAC APIs
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 9f80fb1c..b2e2d312 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -370,6 +370,7 @@ extern "C" { pub fn EVP_DigestFinal_ex(ctx: *mut EVP_MD_CTX, res: *mut u8, n: *mut u32) -> c_int; pub fn EVP_MD_CTX_create() -> *mut EVP_MD_CTX; + pub fn EVP_MD_CTX_copy_ex(dst: *mut EVP_MD_CTX, src: *const EVP_MD_CTX) -> c_int; pub fn EVP_MD_CTX_destroy(ctx: *mut EVP_MD_CTX); pub fn EVP_PKEY_new() -> *mut EVP_PKEY; @@ -383,6 +384,7 @@ extern "C" { pub fn HMAC_Final(ctx: *mut HMAC_CTX, output: *mut u8, len: *mut c_uint) -> c_int; pub fn HMAC_Update(ctx: *mut HMAC_CTX, input: *const u8, len: c_uint) -> c_int; pub fn HMAC_CTX_cleanup(ctx: *mut HMAC_CTX); + pub fn HMAC_CTX_copy(dst: *mut HMAC_CTX, src: *const HMAC_CTX) -> c_int; pub fn PEM_read_bio_X509(bio: *mut BIO, out: *mut *mut X509, callback: Option<PasswordCallback>, |