Lines Matching refs:x509

283 	struct x509_certificate *x509;  in pkcs7_find_key()  local
288 for (x509 = pkcs7->certs; x509; x509 = x509->next, certix++) { in pkcs7_find_key()
294 if (!asymmetric_key_id_same(x509->id, sinfo->sig->auth_ids[0])) in pkcs7_find_key()
299 if (strcmp(x509->pub->pkey_algo, sinfo->sig->pkey_algo) != 0) { in pkcs7_find_key()
305 sinfo->signer = x509; in pkcs7_find_key()
342 struct x509_certificate *x509 = sinfo->signer, *p; in pkcs7_verify_sig_chain() local
355 x509->subject, in pkcs7_verify_sig_chain()
356 x509->raw_serial_size, x509->raw_serial); in pkcs7_verify_sig_chain()
357 x509->seen = true; in pkcs7_verify_sig_chain()
359 if (x509->blacklisted) { in pkcs7_verify_sig_chain()
364 for (p = sinfo->signer; p != x509; p = p->signer) in pkcs7_verify_sig_chain()
368 *signer = x509; in pkcs7_verify_sig_chain()
373 if (x509->unsupported_key) in pkcs7_verify_sig_chain()
376 pr_debug("- issuer %s\n", x509->issuer); in pkcs7_verify_sig_chain()
377 sig = x509->sig; in pkcs7_verify_sig_chain()
385 if (x509->self_signed) { in pkcs7_verify_sig_chain()
391 if (x509->unsupported_sig) in pkcs7_verify_sig_chain()
393 x509->signer = x509; in pkcs7_verify_sig_chain()
396 *signer = x509; in pkcs7_verify_sig_chain()
429 *signer = x509; in pkcs7_verify_sig_chain()
440 sinfo->index, x509->index, p->index); in pkcs7_verify_sig_chain()
453 ret = public_key_verify_signature(p->pub, x509->sig); in pkcs7_verify_sig_chain()
456 x509->signer = p; in pkcs7_verify_sig_chain()
457 if (x509 == p) { in pkcs7_verify_sig_chain()
464 x509 = p; in pkcs7_verify_sig_chain()