Home | History | Annotate | Download | only in evp

Lines Matching refs:pctx

252 EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *pctx)
255 if (!pctx->pmeth || !pctx->pmeth->copy)
259 if (pctx->engine && !ENGINE_init(pctx->engine))
269 rctx->pmeth = pctx->pmeth;
271 rctx->engine = pctx->engine;
274 if (pctx->pkey)
275 CRYPTO_add(&pctx->pkey->references,1,CRYPTO_LOCK_EVP_PKEY);
277 rctx->pkey = pctx->pkey;
279 if (pctx->peerkey)
280 CRYPTO_add(&pctx->peerkey->references,1,CRYPTO_LOCK_EVP_PKEY);
282 rctx->peerkey = pctx->peerkey;
286 rctx->operation = pctx->operation;
288 if (pctx->pmeth->copy(rctx, pctx) > 0)