Lines Matching defs:pkcs7
11 #include <crypto/pkcs7.h>
28 static int pkcs7_find_key(struct pkcs7_message *pkcs7,
37 cert = pkcs7->certs;
127 struct pkcs7_message *pkcs7;
130 pkcs7 = pkcs7_parse_message(raw_pkcs7, pkcs7_len);
131 if (IS_ERR(pkcs7)) {
132 code_sign_log_error("parse pkcs7 message failed");
133 *ret = PTR_ERR(pkcs7);
137 if (!pkcs7->signed_infos) {
138 code_sign_log_error("signed info not found in pkcs7");
143 if (!pkcs7->certs) {
144 code_sign_log_warn("no certs in pkcs7, might be found in trust keyring");
159 for (sinfo = pkcs7->signed_infos; sinfo; sinfo = sinfo->next) {
161 *ret = pkcs7_find_key(pkcs7, sinfo);
163 code_sign_log_error("key not find in pkcs7");
169 code_sign_log_error("signer cert not found in pkcs7");
189 struct x509_certificate* cert = pkcs7->certs;
200 cert = pkcs7->certs;
208 set_file_ownerid(cs_info, source->path_type, pkcs7->signed_infos);
221 pkcs7_free_message(pkcs7);