aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/pkey.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2014-10-13 23:19:14 -0700
committerSteven Fackler <[email protected]>2014-10-13 23:19:14 -0700
commit60dce4c2190ecb935044152c02f4362d76a381e2 (patch)
tree9be063d21a6ca4c90f20be1dd54d0dc3144b959f /src/crypto/pkey.rs
parentMerge pull request #83 from jmesmon/set-cipher-list (diff)
parentCorrect init mutexes and locking function (diff)
downloadrust-openssl-60dce4c2190ecb935044152c02f4362d76a381e2.tar.xz
rust-openssl-60dce4c2190ecb935044152c02f4362d76a381e2.zip
Merge pull request #81 from vhbit/lock-init
Correct init mutexes and locking function
Diffstat (limited to 'src/crypto/pkey.rs')
-rw-r--r--src/crypto/pkey.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crypto/pkey.rs b/src/crypto/pkey.rs
index d95e7738..ac16f478 100644
--- a/src/crypto/pkey.rs
+++ b/src/crypto/pkey.rs
@@ -55,6 +55,8 @@ pub struct PKey {
impl PKey {
pub fn new() -> PKey {
unsafe {
+ ffi::init();
+
PKey {
evp: ffi::EVP_PKEY_new(),
parts: Neither,