diff options
| author | Steven Fackler <[email protected]> | 2016-04-06 17:13:30 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-04-06 17:13:30 -0700 |
| commit | f9d455a4ec9b905ce5cc2a321972113c5e70fd1b (patch) | |
| tree | f1dc0445cf8269cddbcf8a44be37b87d2d76fc81 /openssl-sys | |
| parent | Merge pull request #372 from jwilm/safe-bio-method-wrapper (diff) | |
| parent | add EVP_PKEY_copy_parameters to FFI (diff) | |
| download | rust-openssl-f9d455a4ec9b905ce5cc2a321972113c5e70fd1b.tar.xz rust-openssl-f9d455a4ec9b905ce5cc2a321972113c5e70fd1b.zip | |
Merge pull request #374 from kcking/kcking-pkey-clone-copy
change PKey::clone to use EVP_PKEY_copy_parameters
Diffstat (limited to 'openssl-sys')
| -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; |