Lines Matching refs:cert
31 struct x509_certificate *cert;
37 cert = pkcs7->certs;
38 while (cert) {
39 if (asymmetric_key_id_same(cert->id, sinfo->sig->auth_ids[0])) {
40 if (strcmp(cert->pub->pkey_algo, sinfo->sig->pkey_algo) != 0
41 && (strncmp(cert->pub->pkey_algo, "ecdsa-", 6) != 0
42 || strcmp(cert->sig->pkey_algo, "ecdsa") != 0)) {
44 cert = cert->next;
50 sinfo->index, cert->id, sinfo->sig->auth_ids[0]);
51 cert = cert->next;
56 // cert is found
57 sinfo->signer = cert;
61 /* The relevant X.509 cert isn't found here, but it might be found in
64 code_sign_log_info("Sig %u: Issuing X.509 cert not found (#%*phN)",
142 // no cert chain, verify by certificates in keyring
169 code_sign_log_error("signer cert not found in pkcs7");
186 // cal cert chain depth
189 struct x509_certificate* cert = pkcs7->certs;
190 while(cert) {
191 // if issuer cert is found
192 if (cert->subject && (strcmp(cert->subject, issuer) == 0)) {
194 if (strcmp(cert->subject, cert->issuer) == 0) {
199 issuer = cert->issuer;
200 cert = pkcs7->certs;
203 cert = cert->next;
207 code_sign_log_info("cert subject and issuer trusted");
212 code_sign_log_error("depth mismatch: cert chain depth without root is %d, max_path_depth is %d",
218 code_sign_log_error("cert subject and issuer verify failed");