aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-11-13 20:46:01 +0000
committerSteven Fackler <[email protected]>2016-11-13 20:46:01 +0000
commit1a52649516e5b3924917314ee503523d59ed528b (patch)
treedf1962722ab8f48d5ec12388b9cc2fd38735e705 /openssl-sys/src
parentPublic keys are not always present (diff)
downloadrust-openssl-1a52649516e5b3924917314ee503523d59ed528b.tar.xz
rust-openssl-1a52649516e5b3924917314ee503523d59ed528b.zip
More functionality
Diffstat (limited to 'openssl-sys/src')
-rw-r--r--openssl-sys/src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index 11fa46df..230c0148 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -1374,10 +1374,15 @@ extern {
#[cfg(not(ossl101))]
pub fn DH_get_2048_256() -> *mut DH;
+ pub fn EC_KEY_new() -> *mut EC_KEY;
pub fn EC_KEY_new_by_curve_name(nid: c_int) -> *mut EC_KEY;
+ pub fn EC_KEY_set_group(key: *mut EC_KEY, group: *const EC_GROUP) -> c_int;
pub fn EC_KEY_get0_group(key: *const EC_KEY) -> *const EC_GROUP;
+ pub fn EC_KEY_set_public_key(key: *mut EC_KEY, key: *const EC_POINT) -> c_int;
pub fn EC_KEY_get0_public_key(key: *const EC_KEY) -> *const EC_POINT;
+ pub fn EC_KEY_set_private_key(key: *mut EC_KEY, key: *const BIGNUM) -> c_int;
pub fn EC_KEY_get0_private_key(key: *const EC_KEY) -> *const BIGNUM;
+ pub fn EC_KEY_generate_key(key: *mut EC_KEY) -> c_int;
pub fn EC_KEY_free(key: *mut EC_KEY);
pub fn EC_GFp_simple_method() -> *const EC_METHOD;