Lines Matching refs:srcctx
257 PROV_DH_CTX *srcctx = (PROV_DH_CTX *)vpdhctx; in dh_dupctx() local
263 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in dh_dupctx()
267 *dstctx = *srcctx; in dh_dupctx()
274 if (srcctx->dh != NULL && !DH_up_ref(srcctx->dh)) in dh_dupctx()
277 dstctx->dh = srcctx->dh; in dh_dupctx()
279 if (srcctx->dhpeer != NULL && !DH_up_ref(srcctx->dhpeer)) in dh_dupctx()
282 dstctx->dhpeer = srcctx->dhpeer; in dh_dupctx()
284 if (srcctx->kdf_md != NULL && !EVP_MD_up_ref(srcctx->kdf_md)) in dh_dupctx()
287 dstctx->kdf_md = srcctx->kdf_md; in dh_dupctx()
290 if (srcctx->kdf_ukm != NULL && srcctx->kdf_ukmlen > 0) { in dh_dupctx()
291 dstctx->kdf_ukm = OPENSSL_memdup(srcctx->kdf_ukm, in dh_dupctx()
292 srcctx->kdf_ukmlen); in dh_dupctx()
297 if (srcctx->kdf_cekalg != NULL) { in dh_dupctx()
298 dstctx->kdf_cekalg = OPENSSL_strdup(srcctx->kdf_cekalg); in dh_dupctx()