Lines Matching defs:pctx
300 EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *pctx)
303 if (!pctx->pmeth || !pctx->pmeth->copy)
307 if (pctx->engine && !ENGINE_init(pctx->engine)) {
316 rctx->pmeth = pctx->pmeth;
318 rctx->engine = pctx->engine;
321 if (pctx->pkey)
322 CRYPTO_add(&pctx->pkey->references, 1, CRYPTO_LOCK_EVP_PKEY);
324 rctx->pkey = pctx->pkey;
326 if (pctx->peerkey)
327 CRYPTO_add(&pctx->peerkey->references, 1, CRYPTO_LOCK_EVP_PKEY);
329 rctx->peerkey = pctx->peerkey;
333 rctx->operation = pctx->operation;
335 if (pctx->pmeth->copy(rctx, pctx) > 0)