Lines Matching refs:ret

48     DH *ret = NULL;  in DSA_dup_DH()  local
53 ret = DH_new(); in DSA_dup_DH()
54 if (ret == NULL) in DSA_dup_DH()
57 if (!ossl_ffc_params_copy(ossl_dh_get0_params(ret), &r->params)) in DSA_dup_DH()
69 if (!DH_set0_key(ret, pub_key, priv_key)) in DSA_dup_DH()
76 return ret; in DSA_dup_DH()
81 DH_free(ret); in DSA_dup_DH()
135 DSA *ret = OPENSSL_zalloc(sizeof(*ret)); in dsa_new_intern() local
137 if (ret == NULL) in dsa_new_intern()
140 ret->lock = CRYPTO_THREAD_lock_new(); in dsa_new_intern()
141 if (ret->lock == NULL) { in dsa_new_intern()
143 OPENSSL_free(ret); in dsa_new_intern()
147 if (!CRYPTO_NEW_REF(&ret->references, 1)) { in dsa_new_intern()
148 CRYPTO_THREAD_lock_free(ret->lock); in dsa_new_intern()
149 OPENSSL_free(ret); in dsa_new_intern()
153 ret->libctx = libctx; in dsa_new_intern()
154 ret->meth = DSA_get_default_method(); in dsa_new_intern()
156 ret->flags = ret->meth->flags & ~DSA_FLAG_NON_FIPS_ALLOW; /* early default init */ in dsa_new_intern()
162 ret->engine = engine; in dsa_new_intern()
164 ret->engine = ENGINE_get_default_DSA(); in dsa_new_intern()
165 if (ret->engine) { in dsa_new_intern()
166 ret->meth = ENGINE_get_DSA(ret->engine); in dsa_new_intern()
167 if (ret->meth == NULL) { in dsa_new_intern()
174 ret->flags = ret->meth->flags & ~DSA_FLAG_NON_FIPS_ALLOW; in dsa_new_intern()
177 if (!ossl_crypto_new_ex_data_ex(libctx, CRYPTO_EX_INDEX_DSA, ret, in dsa_new_intern()
178 &ret->ex_data)) in dsa_new_intern()
182 ossl_ffc_params_init(&ret->params); in dsa_new_intern()
184 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in dsa_new_intern()
189 return ret; in dsa_new_intern()
192 DSA_free(ret); in dsa_new_intern()
355 int ret; in ossl_dsa_ffc_params_fromdata() local
358 ret = ossl_ffc_params_fromdata(ffc, params); in ossl_dsa_ffc_params_fromdata()
359 if (ret) in ossl_dsa_ffc_params_fromdata()
361 return ret; in ossl_dsa_ffc_params_fromdata()