Lines Matching refs:dstctx
629 PROV_DSA_CTX *dstctx; in dsa_dupctx() local
634 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in dsa_dupctx()
635 if (dstctx == NULL) in dsa_dupctx()
638 *dstctx = *srcctx; in dsa_dupctx()
639 dstctx->dsa = NULL; in dsa_dupctx()
640 dstctx->propq = NULL; in dsa_dupctx()
644 dstctx->dsa = srcctx->dsa; in dsa_dupctx()
648 dstctx->md = srcctx->md; in dsa_dupctx()
651 dstctx->mdctx = EVP_MD_CTX_new(); in dsa_dupctx()
652 if (dstctx->mdctx == NULL in dsa_dupctx()
653 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx)) in dsa_dupctx()
658 dstctx->propq = OPENSSL_strdup(srcctx->propq); in dsa_dupctx()
659 if (dstctx->propq == NULL) in dsa_dupctx()
663 return dstctx; in dsa_dupctx()
665 dsa_freectx(dstctx); in dsa_dupctx()