Home
last modified time | relevance | path

Searched refs:refcnt_lock (Results 1 – 6 of 6) sorted by relevance

/third_party/openssl/crypto/evp/
Devp_rand.c30 CRYPTO_RWLOCK *refcnt_lock; member
58 return CRYPTO_UP_REF(&rand->refcnt, &ref, rand->refcnt_lock); in evp_rand_up_ref()
69 CRYPTO_DOWN_REF(&rand->refcnt, &ref, rand->refcnt_lock); in evp_rand_free()
74 CRYPTO_THREAD_lock_free(rand->refcnt_lock); in evp_rand_free()
83 || (rand->refcnt_lock = CRYPTO_THREAD_lock_new()) == NULL) { in evp_rand_new()
327 return CRYPTO_UP_REF(&ctx->refcnt, &ref, ctx->refcnt_lock); in evp_rand_ctx_up_ref()
342 if (ctx == NULL || (ctx->refcnt_lock = CRYPTO_THREAD_lock_new()) == NULL) { in EVP_RAND_CTX_new()
350 CRYPTO_THREAD_lock_free(ctx->refcnt_lock); in EVP_RAND_CTX_new()
362 CRYPTO_THREAD_lock_free(ctx->refcnt_lock); in EVP_RAND_CTX_new()
381 CRYPTO_DOWN_REF(&ctx->refcnt, &ref, ctx->refcnt_lock); in EVP_RAND_CTX_free()
[all …]
Devp_local.h91 CRYPTO_RWLOCK *refcnt_lock; member
/third_party/node/deps/openssl/openssl/crypto/evp/
Devp_rand.c30 CRYPTO_RWLOCK *refcnt_lock; member
58 return CRYPTO_UP_REF(&rand->refcnt, &ref, rand->refcnt_lock); in evp_rand_up_ref()
69 CRYPTO_DOWN_REF(&rand->refcnt, &ref, rand->refcnt_lock); in evp_rand_free()
74 CRYPTO_THREAD_lock_free(rand->refcnt_lock); in evp_rand_free()
83 || (rand->refcnt_lock = CRYPTO_THREAD_lock_new()) == NULL) { in evp_rand_new()
327 return CRYPTO_UP_REF(&ctx->refcnt, &ref, ctx->refcnt_lock); in evp_rand_ctx_up_ref()
342 if (ctx == NULL || (ctx->refcnt_lock = CRYPTO_THREAD_lock_new()) == NULL) { in EVP_RAND_CTX_new()
350 CRYPTO_THREAD_lock_free(ctx->refcnt_lock); in EVP_RAND_CTX_new()
362 CRYPTO_THREAD_lock_free(ctx->refcnt_lock); in EVP_RAND_CTX_new()
381 CRYPTO_DOWN_REF(&ctx->refcnt, &ref, ctx->refcnt_lock); in EVP_RAND_CTX_free()
[all …]
Devp_local.h91 CRYPTO_RWLOCK *refcnt_lock; member
/third_party/node/deps/openssl/openssl/crypto/
Dprovider_core.c152 CRYPTO_RWLOCK *refcnt_lock; /* For the ref counter */ member
461 || (prov->refcnt_lock = CRYPTO_THREAD_lock_new()) == NULL in provider_new()
491 if (CRYPTO_UP_REF(&prov->refcnt, &ref, prov->refcnt_lock) <= 0) in ossl_provider_up_ref()
684 CRYPTO_DOWN_REF(&prov->refcnt, &ref, prov->refcnt_lock); in ossl_provider_free()
727 CRYPTO_THREAD_lock_free(prov->refcnt_lock); in ossl_provider_free()
1400 if (CRYPTO_UP_REF(&prov->refcnt, &ref, prov->refcnt_lock) <= 0) { in ossl_provider_doall_activated()
1413 CRYPTO_DOWN_REF(&prov->refcnt, &ref, prov->refcnt_lock); in ossl_provider_doall_activated()
1458 CRYPTO_DOWN_REF(&prov->refcnt, &ref, prov->refcnt_lock); in ossl_provider_doall_activated()
/third_party/openssl/crypto/
Dprovider_core.c152 CRYPTO_RWLOCK *refcnt_lock; /* For the ref counter */ member
461 || (prov->refcnt_lock = CRYPTO_THREAD_lock_new()) == NULL in provider_new()
491 if (CRYPTO_UP_REF(&prov->refcnt, &ref, prov->refcnt_lock) <= 0) in ossl_provider_up_ref()
684 CRYPTO_DOWN_REF(&prov->refcnt, &ref, prov->refcnt_lock); in ossl_provider_free()
727 CRYPTO_THREAD_lock_free(prov->refcnt_lock); in ossl_provider_free()
1400 if (CRYPTO_UP_REF(&prov->refcnt, &ref, prov->refcnt_lock) <= 0) { in ossl_provider_doall_activated()
1413 CRYPTO_DOWN_REF(&prov->refcnt, &ref, prov->refcnt_lock); in ossl_provider_doall_activated()
1458 CRYPTO_DOWN_REF(&prov->refcnt, &ref, prov->refcnt_lock); in ossl_provider_doall_activated()