Lines Matching refs:dstctx
303 PROV_RSA_CTX *dstctx;
308 dstctx = OPENSSL_zalloc(sizeof(*srcctx));
309 if (dstctx == NULL)
312 *dstctx = *srcctx;
313 if (dstctx->rsa != NULL && !RSA_up_ref(dstctx->rsa)) {
314 OPENSSL_free(dstctx);
318 if (dstctx->oaep_md != NULL && !EVP_MD_up_ref(dstctx->oaep_md)) {
319 RSA_free(dstctx->rsa);
320 OPENSSL_free(dstctx);
324 if (dstctx->mgf1_md != NULL && !EVP_MD_up_ref(dstctx->mgf1_md)) {
325 RSA_free(dstctx->rsa);
326 EVP_MD_free(dstctx->oaep_md);
327 OPENSSL_free(dstctx);
331 return dstctx;