Lines Matching refs:rev
93 X509_REVOKED *rev = sk_X509_REVOKED_value(revoked, i);
98 gtmp = X509_REVOKED_get_ext_d2i(rev,
119 rev->issuer = gens;
121 reason = X509_REVOKED_get_ext_d2i(rev, NID_crl_reason, &j, NULL);
128 rev->reason = ASN1_ENUMERATED_get(reason);
131 rev->reason = CRL_REASON_NONE;
135 exts = rev->extensions;
361 int X509_CRL_add0_revoked(X509_CRL *crl, X509_REVOKED *rev) in X509_CRL_add0_revoked() argument
368 if (inf->revoked == NULL || !sk_X509_REVOKED_push(inf->revoked, rev)) { in X509_CRL_add0_revoked()
408 X509_REVOKED *rev) in crl_revoked_issuer_match() argument
412 if (!rev->issuer) { in crl_revoked_issuer_match()
423 for (i = 0; i < sk_GENERAL_NAME_num(rev->issuer); i++) { in crl_revoked_issuer_match()
424 GENERAL_NAME *gen = sk_GENERAL_NAME_value(rev->issuer, i); in crl_revoked_issuer_match()
438 X509_REVOKED rtmp, *rev; in def_crl_lookup() local
460 rev = sk_X509_REVOKED_value(crl->crl.revoked, idx); in def_crl_lookup()
461 if (ASN1_INTEGER_cmp(&rev->serialNumber, serial)) in def_crl_lookup()
463 if (crl_revoked_issuer_match(crl, issuer, rev)) { in def_crl_lookup()
465 *ret = rev; in def_crl_lookup()
466 if (rev->reason == CRL_REASON_REMOVE_FROM_CRL) in def_crl_lookup()