diff options
| author | Kevin King <[email protected]> | 2016-04-06 18:44:17 -0400 |
|---|---|---|
| committer | Kevin King <[email protected]> | 2016-04-06 19:39:50 -0400 |
| commit | 4016edd4de9f660a1a4c5fa67f2f04c6a828fab0 (patch) | |
| tree | f1dc0445cf8269cddbcf8a44be37b87d2d76fc81 /openssl-sys/src | |
| parent | Merge pull request #372 from jwilm/safe-bio-method-wrapper (diff) | |
| download | rust-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.rs | 1 |
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; |