Lines Matching refs:ret

76     int ret = 0;  in ct_v1_log_id_from_pkey()  local
92 ret = EVP_Digest(pkey_der, pkey_der_len, log->log_id, &len, sha256, in ct_v1_log_id_from_pkey()
97 return ret; in ct_v1_log_id_from_pkey()
102 CTLOG_STORE *ret = OPENSSL_zalloc(sizeof(*ret)); in CTLOG_STORE_new_ex() local
104 if (ret == NULL) in CTLOG_STORE_new_ex()
107 ret->libctx = libctx; in CTLOG_STORE_new_ex()
109 ret->propq = OPENSSL_strdup(propq); in CTLOG_STORE_new_ex()
110 if (ret->propq == NULL) in CTLOG_STORE_new_ex()
114 ret->logs = sk_CTLOG_new_null(); in CTLOG_STORE_new_ex()
115 if (ret->logs == NULL) { in CTLOG_STORE_new_ex()
120 return ret; in CTLOG_STORE_new_ex()
122 CTLOG_STORE_free(ret); in CTLOG_STORE_new_ex()
184 int ret = 0; in ctlog_store_load_log() local
194 ret = ctlog_new_from_conf(load_ctx->log_store, &ct_log, load_ctx->conf, tmp); in ctlog_store_load_log()
197 if (ret < 0) { in ctlog_store_load_log()
199 return ret; in ctlog_store_load_log()
201 if (ret == 0) { in ctlog_store_load_log()
217 int ret = 0; in CTLOG_STORE_load_file() local
245 ret = 1; in CTLOG_STORE_load_file()
249 return ret; in CTLOG_STORE_load_file()
260 CTLOG *ret = OPENSSL_zalloc(sizeof(*ret)); in CTLOG_new_ex() local
262 if (ret == NULL) in CTLOG_new_ex()
265 ret->libctx = libctx; in CTLOG_new_ex()
267 ret->propq = OPENSSL_strdup(propq); in CTLOG_new_ex()
268 if (ret->propq == NULL) in CTLOG_new_ex()
272 ret->name = OPENSSL_strdup(name); in CTLOG_new_ex()
273 if (ret->name == NULL) in CTLOG_new_ex()
276 if (ct_v1_log_id_from_pkey(ret, public_key) != 1) in CTLOG_new_ex()
279 ret->public_key = public_key; in CTLOG_new_ex()
280 return ret; in CTLOG_new_ex()
282 CTLOG_free(ret); in CTLOG_new_ex()