diff options
author | Matt Caswell <matt@openssl.org> | 2016-03-09 01:07:26 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-03-09 11:04:27 +0100 |
commit | af48aa7197cbaf9e18eede5861182c0a6b2761c1 (patch) | |
tree | a318c0a9bee9b0ca8ed4cb3796e2d93c6dddfdc6 /engines | |
parent | ae6412f3bed37a4a7e8248ccbc31c849f20ac857 (diff) |
Remove another lock from e_chil
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'engines')
-rw-r--r-- | engines/e_chil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/e_chil.c b/engines/e_chil.c index c6ae800069..a748e59686 100644 --- a/engines/e_chil.c +++ b/engines/e_chil.c @@ -870,14 +870,14 @@ static EVP_PKEY *hwcrhk_load_pubkey(ENGINE *eng, const char *key_id, { RSA *rsa = NULL; - CRYPTO_w_lock(CRYPTO_LOCK_EVP_PKEY); + CRYPTO_THREAD_write_lock(chil_lock); rsa = res->pkey.rsa; res->pkey.rsa = RSA_new(); res->pkey.rsa->n = rsa->n; res->pkey.rsa->e = rsa->e; rsa->n = NULL; rsa->e = NULL; - CRYPTO_w_unlock(CRYPTO_LOCK_EVP_PKEY); + CRYPTO_THREAD_unlock(chil_lock); RSA_free(rsa); } break; |