diff options
| author | Steven Fackler <[email protected]> | 2016-11-11 19:17:26 +0000 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-11-11 19:17:38 +0000 |
| commit | 15490a43e399ce0f6e3838c96c609abf08b1c5db (patch) | |
| tree | bf5d76cf0b853fd709970cb0d7490efcb969e7ce /openssl-sys/src | |
| parent | PKey <-> DH conversions (diff) | |
| download | rust-openssl-15490a43e399ce0f6e3838c96c609abf08b1c5db.tar.xz rust-openssl-15490a43e399ce0f6e3838c96c609abf08b1c5db.zip | |
Add EcKey <-> PKey conversions
Closes #499
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 16ba529e..bdfe9b8c 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -114,6 +114,7 @@ pub const EVP_PKEY_RSA: c_int = NID_rsaEncryption; pub const EVP_PKEY_HMAC: c_int = NID_hmac; pub const EVP_PKEY_DSA: c_int = NID_dsa; pub const EVP_PKEY_DH: c_int = NID_dhKeyAgreement; +pub const EVP_PKEY_EC: c_int = NID_X9_62_id_ecPublicKey; pub const EVP_CTRL_GCM_SET_IVLEN: c_int = 0x9; pub const EVP_CTRL_GCM_GET_TAG: c_int = 0x10; @@ -1458,6 +1459,7 @@ extern { pub fn EVP_PKEY_set1_RSA(k: *mut EVP_PKEY, r: *mut RSA) -> c_int; pub fn EVP_PKEY_get1_DSA(k: *mut EVP_PKEY) -> *mut DSA; pub fn EVP_PKEY_get1_DH(k: *mut EVP_PKEY) -> *mut DH; + pub fn EVP_PKEY_get1_EC_KEY(k: *mut EVP_PKEY) -> *mut EC_KEY; pub fn EVP_PKEY_cmp(a: *const EVP_PKEY, b: *const EVP_PKEY) -> c_int; pub fn EVP_PKEY_new_mac_key(type_: c_int, e: *mut ENGINE, |