diff options
| author | Steven Fackler <[email protected]> | 2018-06-23 23:53:09 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-06-23 23:53:09 -0400 |
| commit | 4c1891cc1085282acd8fa9820d81fb84d87b6e4e (patch) | |
| tree | f7ad7db042d98f78c43bc96dede20873bdbfce97 /openssl-sys/src/openssl | |
| parent | Merge pull request #952 from rumpelsepp/patch-1 (diff) | |
| parent | Simplify DSA from private components (diff) | |
| download | rust-openssl-4c1891cc1085282acd8fa9820d81fb84d87b6e4e.tar.xz rust-openssl-4c1891cc1085282acd8fa9820d81fb84d87b6e4e.zip | |
Merge pull request #950 from WanzenBug/master
Add access to private/public components of DSA key pairs.
Diffstat (limited to 'openssl-sys/src/openssl')
| -rw-r--r-- | openssl-sys/src/openssl/v110.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/openssl-sys/src/openssl/v110.rs b/openssl-sys/src/openssl/v110.rs index 47d2bee4..493385da 100644 --- a/openssl-sys/src/openssl/v110.rs +++ b/openssl-sys/src/openssl/v110.rs @@ -235,11 +235,22 @@ extern "C" { q: *mut *const ::BIGNUM, q: *mut *const ::BIGNUM, ); + pub fn DSA_set0_pqg( + d: *mut ::DSA, + p: *mut ::BIGNUM, + q: *mut ::BIGNUM, + q: *mut ::BIGNUM, + ) -> c_int; pub fn DSA_get0_key( d: *const ::DSA, pub_key: *mut *const ::BIGNUM, priv_key: *mut *const ::BIGNUM, ); + pub fn DSA_set0_key( + d: *mut ::DSA, + pub_key: *mut ::BIGNUM, + priv_key: *mut ::BIGNUM, + ) -> c_int; pub fn RSA_get0_key( r: *const ::RSA, n: *mut *const ::BIGNUM, |