Lines Matching refs:ret

15     DSO *ret;  in DSO_new_method()  local
17 ret = OPENSSL_zalloc(sizeof(*ret)); in DSO_new_method()
18 if (ret == NULL) { in DSO_new_method()
22 ret->meth_data = sk_void_new_null(); in DSO_new_method()
23 if (ret->meth_data == NULL) { in DSO_new_method()
26 OPENSSL_free(ret); in DSO_new_method()
29 ret->meth = DSO_METHOD_openssl(); in DSO_new_method()
30 ret->references = 1; in DSO_new_method()
31 ret->lock = CRYPTO_THREAD_lock_new(); in DSO_new_method()
32 if (ret->lock == NULL) { in DSO_new_method()
34 sk_void_free(ret->meth_data); in DSO_new_method()
35 OPENSSL_free(ret); in DSO_new_method()
39 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in DSO_new_method()
40 DSO_free(ret); in DSO_new_method()
41 ret = NULL; in DSO_new_method()
44 return ret; in DSO_new_method()
111 DSO *ret; in DSO_load() local
115 ret = DSO_new_method(meth); in DSO_load()
116 if (ret == NULL) { in DSO_load()
122 if (DSO_ctrl(ret, DSO_CTRL_SET_FLAGS, flags, NULL) < 0) { in DSO_load()
127 ret = dso; in DSO_load()
129 if (ret->filename != NULL) { in DSO_load()
138 if (!DSO_set_filename(ret, filename)) { in DSO_load()
142 filename = ret->filename; in DSO_load()
147 if (ret->meth->dso_load == NULL) { in DSO_load()
151 if (!ret->meth->dso_load(ret)) { in DSO_load()
156 return ret; in DSO_load()
159 DSO_free(ret); in DSO_load()
165 DSO_FUNC_TYPE ret = NULL; in DSO_bind_func() local
175 if ((ret = dso->meth->dso_bind_func(dso, symname)) == NULL) { in DSO_bind_func()
180 return ret; in DSO_bind_func()
313 DSO *ret = NULL; in DSO_dsobyaddr() local
323 ret = DSO_load(NULL, filename, NULL, flags); in DSO_dsobyaddr()
326 return ret; in DSO_dsobyaddr()