Lines Matching refs:srcctx
288 PROV_DH_CTX *srcctx = (PROV_DH_CTX *)vpdhctx; in dh_dupctx() local
294 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in dh_dupctx()
298 *dstctx = *srcctx; in dh_dupctx()
305 if (srcctx->dh != NULL && !DH_up_ref(srcctx->dh)) in dh_dupctx()
308 dstctx->dh = srcctx->dh; in dh_dupctx()
310 if (srcctx->dhpeer != NULL && !DH_up_ref(srcctx->dhpeer)) in dh_dupctx()
313 dstctx->dhpeer = srcctx->dhpeer; in dh_dupctx()
315 if (srcctx->kdf_md != NULL && !EVP_MD_up_ref(srcctx->kdf_md)) in dh_dupctx()
318 dstctx->kdf_md = srcctx->kdf_md; in dh_dupctx()
321 if (srcctx->kdf_ukm != NULL && srcctx->kdf_ukmlen > 0) { in dh_dupctx()
322 dstctx->kdf_ukm = OPENSSL_memdup(srcctx->kdf_ukm, in dh_dupctx()
323 srcctx->kdf_ukmlen); in dh_dupctx()
328 if (srcctx->kdf_cekalg != NULL) { in dh_dupctx()
329 dstctx->kdf_cekalg = OPENSSL_strdup(srcctx->kdf_cekalg); in dh_dupctx()