X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=engines%2Fe_chil.c;h=a748e59686ee63d5b016656051c2e7c8cb9e1509;hb=af48aa7197cbaf9e18eede5861182c0a6b2761c1;hp=c6ae800069f3444ac1b809ec9798bb9559b1a613;hpb=ae6412f3bed37a4a7e8248ccbc31c849f20ac857;p=openssl.git 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;