diff options
| author | Steven Fackler <[email protected]> | 2017-07-25 21:59:52 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2017-07-25 21:59:52 -0700 |
| commit | 01927c19acfdc6a601c7f06c7c11c83f7e4b8921 (patch) | |
| tree | 6b46578d0c4930379679baf83c5d4f338937290e /openssl | |
| parent | Fix build (diff) | |
| download | rust-openssl-01927c19acfdc6a601c7f06c7c11c83f7e4b8921.tar.xz rust-openssl-01927c19acfdc6a601c7f06c7c11c83f7e4b8921.zip | |
Initialize OpenSSL in DSA constructor
This fixes the double unlock errors that were popping up on circle
Diffstat (limited to 'openssl')
| -rw-r--r-- | openssl/src/dsa.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openssl/src/dsa.rs b/openssl/src/dsa.rs index 130e1dc7..23ab5743 100644 --- a/openssl/src/dsa.rs +++ b/openssl/src/dsa.rs @@ -79,6 +79,7 @@ impl DsaRef { impl Dsa { /// Generate a DSA key pair. pub fn generate(bits: u32) -> Result<Dsa, ErrorStack> { + ffi::init(); unsafe { let dsa = Dsa(try!(cvt_p(ffi::DSA_new()))); try!(cvt(ffi::DSA_generate_parameters_ex( |