Lines Matching refs:dstctx
289 PROV_DH_CTX *dstctx; in dh_dupctx() local
294 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in dh_dupctx()
295 if (dstctx == NULL) in dh_dupctx()
298 *dstctx = *srcctx; in dh_dupctx()
299 dstctx->dh = NULL; in dh_dupctx()
300 dstctx->dhpeer = NULL; in dh_dupctx()
301 dstctx->kdf_md = NULL; in dh_dupctx()
302 dstctx->kdf_ukm = NULL; in dh_dupctx()
303 dstctx->kdf_cekalg = NULL; in dh_dupctx()
308 dstctx->dh = srcctx->dh; in dh_dupctx()
313 dstctx->dhpeer = srcctx->dhpeer; in dh_dupctx()
318 dstctx->kdf_md = srcctx->kdf_md; in dh_dupctx()
322 dstctx->kdf_ukm = OPENSSL_memdup(srcctx->kdf_ukm, in dh_dupctx()
324 if (dstctx->kdf_ukm == NULL) in dh_dupctx()
329 dstctx->kdf_cekalg = OPENSSL_strdup(srcctx->kdf_cekalg); in dh_dupctx()
330 if (dstctx->kdf_cekalg == NULL) in dh_dupctx()
334 return dstctx; in dh_dupctx()
336 dh_freectx(dstctx); in dh_dupctx()