x509 381 crypto/asymmetric_keys/pkcs7_parser.c struct x509_certificate *x509; x509 400 crypto/asymmetric_keys/pkcs7_parser.c x509 = x509_cert_parse(value, vlen); x509 401 crypto/asymmetric_keys/pkcs7_parser.c if (IS_ERR(x509)) x509 402 crypto/asymmetric_keys/pkcs7_parser.c return PTR_ERR(x509); x509 404 crypto/asymmetric_keys/pkcs7_parser.c x509->index = ++ctx->x509_index; x509 405 crypto/asymmetric_keys/pkcs7_parser.c pr_debug("Got cert %u for %s\n", x509->index, x509->subject); x509 406 crypto/asymmetric_keys/pkcs7_parser.c pr_debug("- fingerprint %*phN\n", x509->id->len, x509->id->data); x509 408 crypto/asymmetric_keys/pkcs7_parser.c *ctx->ppcerts = x509; x509 409 crypto/asymmetric_keys/pkcs7_parser.c ctx->ppcerts = &x509->next; x509 27 crypto/asymmetric_keys/pkcs7_trust.c struct x509_certificate *x509, *last = NULL, *p; x509 38 crypto/asymmetric_keys/pkcs7_trust.c for (x509 = sinfo->signer; x509; x509 = x509->signer) { x509 39 crypto/asymmetric_keys/pkcs7_trust.c if (x509->seen) { x509 40 crypto/asymmetric_keys/pkcs7_trust.c if (x509->verified) x509 45 crypto/asymmetric_keys/pkcs7_trust.c x509->seen = true; x509 51 crypto/asymmetric_keys/pkcs7_trust.c x509->id, x509->skid, false); x509 59 crypto/asymmetric_keys/pkcs7_trust.c sinfo->index, x509->index, key_serial(key)); x509 68 crypto/asymmetric_keys/pkcs7_trust.c if (x509->signer == x509) { x509 74 crypto/asymmetric_keys/pkcs7_trust.c last = x509; x509 87 crypto/asymmetric_keys/pkcs7_trust.c x509 = last; x509 89 crypto/asymmetric_keys/pkcs7_trust.c sinfo->index, x509->index, key_serial(key)); x509 104 crypto/asymmetric_keys/pkcs7_trust.c x509 = NULL; x509 125 crypto/asymmetric_keys/pkcs7_trust.c if (x509) { x509 126 crypto/asymmetric_keys/pkcs7_trust.c x509->verified = true; x509 127 crypto/asymmetric_keys/pkcs7_trust.c for (p = sinfo->signer; p != x509; p = p->signer) x509 162 crypto/asymmetric_keys/pkcs7_verify.c struct x509_certificate *x509; x509 167 crypto/asymmetric_keys/pkcs7_verify.c for (x509 = pkcs7->certs; x509; x509 = x509->next, certix++) { x509 173 crypto/asymmetric_keys/pkcs7_verify.c if (!asymmetric_key_id_same(x509->id, sinfo->sig->auth_ids[0])) x509 178 crypto/asymmetric_keys/pkcs7_verify.c if (strcmp(x509->pub->pkey_algo, sinfo->sig->pkey_algo) != 0) { x509 184 crypto/asymmetric_keys/pkcs7_verify.c sinfo->signer = x509; x509 204 crypto/asymmetric_keys/pkcs7_verify.c struct x509_certificate *x509 = sinfo->signer, *p; x509 215 crypto/asymmetric_keys/pkcs7_verify.c x509->subject, x509 216 crypto/asymmetric_keys/pkcs7_verify.c x509->raw_serial_size, x509->raw_serial); x509 217 crypto/asymmetric_keys/pkcs7_verify.c x509->seen = true; x509 219 crypto/asymmetric_keys/pkcs7_verify.c if (x509->blacklisted) { x509 224 crypto/asymmetric_keys/pkcs7_verify.c for (p = sinfo->signer; p != x509; p = p->signer) x509 230 crypto/asymmetric_keys/pkcs7_verify.c if (x509->unsupported_key) x509 233 crypto/asymmetric_keys/pkcs7_verify.c pr_debug("- issuer %s\n", x509->issuer); x509 234 crypto/asymmetric_keys/pkcs7_verify.c sig = x509->sig; x509 242 crypto/asymmetric_keys/pkcs7_verify.c if (x509->self_signed) { x509 248 crypto/asymmetric_keys/pkcs7_verify.c if (x509->unsupported_sig) x509 250 crypto/asymmetric_keys/pkcs7_verify.c x509->signer = x509; x509 291 crypto/asymmetric_keys/pkcs7_verify.c sinfo->index, x509->index, p->index); x509 301 crypto/asymmetric_keys/pkcs7_verify.c ret = public_key_verify_signature(p->pub, x509->sig); x509 304 crypto/asymmetric_keys/pkcs7_verify.c x509->signer = p; x509 305 crypto/asymmetric_keys/pkcs7_verify.c if (x509 == p) { x509 309 crypto/asymmetric_keys/pkcs7_verify.c x509 = p; x509 2976 include/linux/fs.h id(X509_CERTIFICATE, x509-certificate) \ x509 76 scripts/extract-cert.c static void write_cert(X509 *x509) x509 84 scripts/extract-cert.c X509_NAME_oneline(X509_get_subject_name(x509), buf, sizeof(buf)); x509 85 scripts/extract-cert.c ERR(!i2d_X509_bio(wb, x509), "%s", cert_dst); x509 139 scripts/extract-cert.c X509 *x509; x509 145 scripts/extract-cert.c x509 = PEM_read_bio_X509(b, NULL, NULL, NULL); x509 146 scripts/extract-cert.c if (wb && !x509) { x509 154 scripts/extract-cert.c ERR(!x509, "%s", cert_src); x509 155 scripts/extract-cert.c write_cert(x509); x509 173 scripts/sign-file.c X509 *x509; x509 198 scripts/sign-file.c x509 = d2i_X509_bio(b, NULL); x509 201 scripts/sign-file.c x509 = PEM_read_bio_X509(b, NULL, NULL, NULL); x509 204 scripts/sign-file.c ERR(!x509, "%s", x509_name); x509 206 scripts/sign-file.c return x509; x509 229 scripts/sign-file.c X509 *x509; x509 298 scripts/sign-file.c x509 = read_x509(x509_name); x509 313 scripts/sign-file.c ERR(!CMS_add1_signer(cms, x509, private_key, digest_algo, x509 322 scripts/sign-file.c pkcs7 = PKCS7_sign(x509, private_key, NULL, bm,