Lines Matching refs:dstctx
258 PROV_DH_CTX *dstctx; in dh_dupctx() local
263 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in dh_dupctx()
264 if (dstctx == NULL) in dh_dupctx()
267 *dstctx = *srcctx; in dh_dupctx()
268 dstctx->dh = NULL; in dh_dupctx()
269 dstctx->dhpeer = NULL; in dh_dupctx()
270 dstctx->kdf_md = NULL; in dh_dupctx()
271 dstctx->kdf_ukm = NULL; in dh_dupctx()
272 dstctx->kdf_cekalg = NULL; in dh_dupctx()
277 dstctx->dh = srcctx->dh; in dh_dupctx()
282 dstctx->dhpeer = srcctx->dhpeer; in dh_dupctx()
287 dstctx->kdf_md = srcctx->kdf_md; in dh_dupctx()
291 dstctx->kdf_ukm = OPENSSL_memdup(srcctx->kdf_ukm, in dh_dupctx()
293 if (dstctx->kdf_ukm == NULL) in dh_dupctx()
298 dstctx->kdf_cekalg = OPENSSL_strdup(srcctx->kdf_cekalg); in dh_dupctx()
299 if (dstctx->kdf_cekalg == NULL) in dh_dupctx()
303 return dstctx; in dh_dupctx()
305 dh_freectx(dstctx); in dh_dupctx()