diff options
| author | Rohit Aggarwal <[email protected]> | 2018-03-08 11:54:19 +0000 |
|---|---|---|
| committer | Rohit Aggarwal <[email protected]> | 2018-03-08 11:54:19 +0000 |
| commit | 55ffc9b2e415c3286c8d903b7c0284c834e4a13d (patch) | |
| tree | d8ee3c794afd47c4f87f925c86adc6e616c763a2 /openssl-sys/src/lib.rs | |
| parent | Exposed some of ECDSA functions (diff) | |
| download | rust-openssl-55ffc9b2e415c3286c8d903b7c0284c834e4a13d.tar.xz rust-openssl-55ffc9b2e415c3286c8d903b7c0284c834e4a13d.zip | |
Add support LibreSSL and remove OpenSSL binding which we aren't using
Diffstat (limited to 'openssl-sys/src/lib.rs')
| -rw-r--r-- | openssl-sys/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 77f69188..4a73ff7f 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -1876,6 +1876,12 @@ extern "C" { ctx: *mut BN_CTX, ) -> c_int; + pub fn ECDSA_SIG_new() -> *mut ECDSA_SIG; + pub fn ECDSA_SIG_free(sig: *mut ECDSA_SIG); + pub fn ECDSA_do_verify(dgst: *const c_uchar, dgst_len: c_int, + sig: *const ECDSA_SIG, eckey: *mut ::EC_KEY) -> c_int; + pub fn ECDSA_do_sign(dgst: *const c_uchar, dgst_len: c_int, eckey: *mut ::EC_KEY) -> *mut ECDSA_SIG; + pub fn ERR_peek_last_error() -> c_ulong; pub fn ERR_get_error() -> c_ulong; pub fn ERR_get_error_line_data( |