Lines Matching refs:srcctx
1336 PROV_RSA_CTX *srcctx = (PROV_RSA_CTX *)vprsactx; in rsa_dupctx() local
1342 dstctx = OPENSSL_zalloc(sizeof(*srcctx)); in rsa_dupctx()
1346 *dstctx = *srcctx; in rsa_dupctx()
1354 if (srcctx->rsa != NULL && !RSA_up_ref(srcctx->rsa)) in rsa_dupctx()
1356 dstctx->rsa = srcctx->rsa; in rsa_dupctx()
1358 if (srcctx->md != NULL && !EVP_MD_up_ref(srcctx->md)) in rsa_dupctx()
1360 dstctx->md = srcctx->md; in rsa_dupctx()
1362 if (srcctx->mgf1_md != NULL && !EVP_MD_up_ref(srcctx->mgf1_md)) in rsa_dupctx()
1364 dstctx->mgf1_md = srcctx->mgf1_md; in rsa_dupctx()
1366 if (srcctx->mdctx != NULL) { in rsa_dupctx()
1369 || !EVP_MD_CTX_copy_ex(dstctx->mdctx, srcctx->mdctx)) in rsa_dupctx()
1373 if (srcctx->propq != NULL) { in rsa_dupctx()
1374 dstctx->propq = OPENSSL_strdup(srcctx->propq); in rsa_dupctx()