Lines Matching refs:pctx
281 EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *pctx)
284 if (!pctx->pmeth || !pctx->pmeth->copy)
288 if (pctx->engine && !ENGINE_init(pctx->engine)) {
297 rctx->pmeth = pctx->pmeth;
299 rctx->engine = pctx->engine;
302 if (pctx->pkey)
303 CRYPTO_add(&pctx->pkey->references, 1, CRYPTO_LOCK_EVP_PKEY);
305 rctx->pkey = pctx->pkey;
307 if (pctx->peerkey)
308 CRYPTO_add(&pctx->peerkey->references, 1, CRYPTO_LOCK_EVP_PKEY);
310 rctx->peerkey = pctx->peerkey;
314 rctx->operation = pctx->operation;
316 if (pctx->pmeth->copy(rctx, pctx) > 0)