Lines Matching refs:ret
21 OCSP_CERTID **ret);
36 int ret = -1; in ocsp_verify_signer() local
60 ret = X509_verify_cert(ctx); in ocsp_verify_signer()
61 if (ret <= 0) { in ocsp_verify_signer()
73 return ret; in ocsp_verify_signer()
80 int ret = 1; in ocsp_verify() local
88 ret = OCSP_REQUEST_verify(req, skey, signer->libctx, signer->propq); in ocsp_verify()
90 ret = OCSP_BASICRESP_verify(bs, skey, signer->libctx, signer->propq); in ocsp_verify()
91 if (ret <= 0) in ocsp_verify()
94 return ret; in ocsp_verify()
104 int ret = ocsp_find_signer(&signer, bs, certs, flags); in OCSP_basic_verify() local
106 if (ret == 0) { in OCSP_basic_verify()
110 if ((ret == 2) && (flags & OCSP_TRUSTOTHER) != 0) in OCSP_basic_verify()
113 if ((ret = ocsp_verify(NULL, bs, signer, flags)) <= 0) in OCSP_basic_verify()
116 ret = -1; in OCSP_basic_verify()
123 ret = ocsp_verify_signer(signer, 1, st, flags, untrusted, &chain); in OCSP_basic_verify()
124 if (ret <= 0) in OCSP_basic_verify()
127 ret = 1; in OCSP_basic_verify()
134 ret = ocsp_check_issuer(bs, chain); in OCSP_basic_verify()
137 if (ret != 0) in OCSP_basic_verify()
150 ret = 0; in OCSP_basic_verify()
153 ret = 1; in OCSP_basic_verify()
159 return ret; in OCSP_basic_verify()
227 int ret; in ocsp_check_issuer() local
235 ret = ocsp_check_ids(sresp, &caid); in ocsp_check_issuer()
238 if (ret <= 0) in ocsp_check_issuer()
239 return ret; in ocsp_check_issuer()
245 ret = ocsp_match_issuerid(sca, caid, sresp); in ocsp_check_issuer()
246 if (ret < 0) in ocsp_check_issuer()
247 return ret; in ocsp_check_issuer()
248 if (ret != 0) { in ocsp_check_issuer()
267 static int ocsp_check_ids(STACK_OF(OCSP_SINGLERESP) *sresp, OCSP_CERTID **ret) in ocsp_check_ids() argument
280 *ret = NULL; in ocsp_check_ids()
295 *ret = cid; in ocsp_check_ids()
306 int ret = -1; in ocsp_match_issuerid() local
337 ret = 0; in ocsp_match_issuerid()
344 ret = 0; in ocsp_match_issuerid()
351 ret = memcmp(md, cid->issuerKeyHash.data, mdlen) == 0; in ocsp_match_issuerid()
360 ret = ocsp_match_issuerid(cert, tmpid, NULL); in ocsp_match_issuerid()
361 if (ret <= 0) in ocsp_match_issuerid()
362 return ret; in ocsp_match_issuerid()
368 return ret; in ocsp_match_issuerid()
391 int ret; in OCSP_request_verify() local
403 ret = ocsp_req_find_signer(&signer, req, nm, certs, flags); in OCSP_request_verify()
404 if (ret <= 0) { in OCSP_request_verify()
408 if ((ret == 2) && (flags & OCSP_TRUSTOTHER) != 0) in OCSP_request_verify()
411 if ((ret = ocsp_verify(req, NULL, signer, flags)) <= 0) in OCSP_request_verify()