Lines Matching refs:ret

57     int ret;  in _hx509_collector_alloc()  local
68 ret = hx509_certs_init(context, "MEMORY:collector-unenvelop-cert", in _hx509_collector_alloc()
70 if (ret) { in _hx509_collector_alloc()
72 return ret; in _hx509_collector_alloc()
76 ret = hx509_certs_init(context, "MEMORY:collector-tmp-store", in _hx509_collector_alloc()
78 if (ret) { in _hx509_collector_alloc()
81 return ret; in _hx509_collector_alloc()
123 int ret; in _hx509_collector_private_key_add() local
137 ret = copy_AlgorithmIdentifier(alg, &key->alg); in _hx509_collector_private_key_add()
138 if (ret) { in _hx509_collector_private_key_add()
139 hx509_set_error_string(context, 0, ret, "Failed to copy " in _hx509_collector_private_key_add()
146 ret = hx509_parse_private_key(context, alg, in _hx509_collector_private_key_add()
150 if (ret) in _hx509_collector_private_key_add()
154 ret = der_copy_octet_string(localKeyId, &key->localKeyId); in _hx509_collector_private_key_add()
155 if (ret) { in _hx509_collector_private_key_add()
156 hx509_set_error_string(context, 0, ret, in _hx509_collector_private_key_add()
167 if (ret) in _hx509_collector_private_key_add()
170 return ret; in _hx509_collector_private_key_add()
180 int ret; in match_localkeyid() local
193 ret = hx509_certs_find(context, certs, &q, &cert); in match_localkeyid()
194 if (ret == 0) { in match_localkeyid()
200 return ret; in match_localkeyid()
208 int ret, found = HX509_CERT_NOT_FOUND; in match_keys() local
216 ret = hx509_certs_start_seq(context, certs, &cursor); in match_keys()
217 if (ret) in match_keys()
218 return ret; in match_keys()
222 ret = hx509_certs_next_cert(context, certs, cursor, &c); in match_keys()
223 if (ret) in match_keys()
232 ret = _hx509_match_keys(c, value->private_key); in match_keys()
233 if (ret) { in match_keys()
256 int ret; in _hx509_collector_collect_certs() local
261 ret = hx509_certs_init(context, "MEMORY:collector-store", 0, NULL, &certs); in _hx509_collector_collect_certs()
262 if (ret) in _hx509_collector_collect_certs()
263 return ret; in _hx509_collector_collect_certs()
265 ret = hx509_certs_merge(context, certs, c->certs); in _hx509_collector_collect_certs()
266 if (ret) { in _hx509_collector_collect_certs()
268 return ret; in _hx509_collector_collect_certs()
272 ret = match_localkeyid(context, c->val.data[i], certs); in _hx509_collector_collect_certs()
273 if (ret == 0) in _hx509_collector_collect_certs()
275 ret = match_keys(context, c->val.data[i], certs); in _hx509_collector_collect_certs()
276 if (ret == 0) in _hx509_collector_collect_certs()