diff options
| author | Steven Fackler <[email protected]> | 2017-01-22 11:22:15 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-01-22 11:22:15 +0000 |
| commit | 4fbc16b8a8500b641776efb670ff45f25d4be54b (patch) | |
| tree | ef4194826e8a68984b6fd5353f03157541684cf3 /openssl-sys/src | |
| parent | Fix test warnings (diff) | |
| parent | Support EC_GROUP_set_asn1_flag (diff) | |
| download | rust-openssl-4fbc16b8a8500b641776efb670ff45f25d4be54b.tar.xz rust-openssl-4fbc16b8a8500b641776efb670ff45f25d4be54b.zip | |
Merge pull request #562 from sfackler/named-curve
Support EC_GROUP_set_asn1_flag
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 865061ee..970539d7 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -1109,6 +1109,8 @@ pub const OCSP_RESPONSE_STATUS_TRYLATER: c_int = 3; pub const OCSP_RESPONSE_STATUS_SIGREQUIRED: c_int = 5; pub const OCSP_RESPONSE_STATUS_UNAUTHORIZED: c_int = 6; +pub const OPENSSL_EC_NAMED_CURVE: c_int = 1; + pub const PKCS5_SALT_LEN: c_int = 8; pub const RSA_F4: c_long = 0x10001; @@ -1510,6 +1512,7 @@ extern { pub fn EC_GROUP_get_curve_GF2m(group: *const EC_GROUP, p: *mut BIGNUM, a: *mut BIGNUM, b: *mut BIGNUM, ctx: *mut BN_CTX) -> c_int; pub fn EC_GROUP_get_degree(group: *const EC_GROUP) -> c_int; pub fn EC_GROUP_get_order(group: *const EC_GROUP, order: *mut BIGNUM, ctx: *mut BN_CTX) -> c_int; + pub fn EC_GROUP_set_asn1_flag(key: *mut EC_GROUP, flag: c_int); pub fn EC_GROUP_free(group: *mut EC_GROUP); |