Lines Matching refs:dstctx
403 PROV_DSA_CTX *dstctx; in dsa_dupctx() local
408 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in dsa_dupctx()
409 if (dstctx == NULL) in dsa_dupctx()
412 *dstctx = *srcctx; in dsa_dupctx()
413 dstctx->dsa = NULL; in dsa_dupctx()
414 dstctx->md = NULL; in dsa_dupctx()
415 dstctx->mdctx = NULL; in dsa_dupctx()
416 dstctx->propq = NULL; in dsa_dupctx()
420 dstctx->dsa = srcctx->dsa; in dsa_dupctx()
424 dstctx->md = srcctx->md; in dsa_dupctx()
427 dstctx->mdctx = EVP_MD_CTX_new(); in dsa_dupctx()
428 if (dstctx->mdctx == NULL in dsa_dupctx()
429 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx)) in dsa_dupctx()
433 dstctx->propq = OPENSSL_strdup(srcctx->propq); in dsa_dupctx()
434 if (dstctx->propq == NULL) in dsa_dupctx()
438 return dstctx; in dsa_dupctx()
440 dsa_freectx(dstctx); in dsa_dupctx()