aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorKevin King <[email protected]>2016-04-06 18:44:17 -0400
committerKevin King <[email protected]>2016-04-06 19:39:50 -0400
commit4016edd4de9f660a1a4c5fa67f2f04c6a828fab0 (patch)
treef1dc0445cf8269cddbcf8a44be37b87d2d76fc81 /openssl-sys/src
parentMerge pull request #372 from jwilm/safe-bio-method-wrapper (diff)
downloadrust-openssl-4016edd4de9f660a1a4c5fa67f2f04c6a828fab0.tar.xz
rust-openssl-4016edd4de9f660a1a4c5fa67f2f04c6a828fab0.zip
add EVP_PKEY_copy_parameters to FFI
copy EVP_PKEY params in PKey::clone test that PKey::clone creates a copy
Diffstat (limited to 'openssl-sys/src')
-rw-r--r--openssl-sys/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index 6d6d6103..77f846ab 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -548,6 +548,7 @@ extern "C" {
pub fn EVP_PKEY_new() -> *mut EVP_PKEY;
pub fn EVP_PKEY_free(k: *mut EVP_PKEY);
pub fn EVP_PKEY_assign(pkey: *mut EVP_PKEY, typ: c_int, key: *const c_void) -> c_int;
+ pub fn EVP_PKEY_copy_parameters(to: *mut EVP_PKEY, from: *const EVP_PKEY) -> c_int;
pub fn EVP_PKEY_get1_RSA(k: *mut EVP_PKEY) -> *mut RSA;
pub fn EVP_PKEY_set1_RSA(k: *mut EVP_PKEY, r: *mut RSA) -> c_int;
pub fn EVP_PKEY_cmp(a: *const EVP_PKEY, b: *const EVP_PKEY) -> c_int;