Lines Matching refs:cert

41 				code_sign_log_info("cert found");
46 code_sign_log_error("cert not found");
90 int cert_chain_insert(struct rb_root *root, struct cert_source *cert)
98 if (!(cert->path_type == RELEASE_DEVELOPER_CODE
99 || cert->path_type == DEBUG_DEVELOPER_CODE)) {
100 code_sign_log_error("no permission to insert code %d", cert->path_type);
110 int result = strcmp(cert->subject, this->subject);
118 result = strcmp(cert->issuer, this->issuer);
125 code_sign_log_info("cert already exist in trust sources");
132 cert->cnt++;
133 rb_link_node(&cert->node, parent, new);
134 rb_insert_color(&cert->node, root);
136 code_sign_log_info("add trusted cert: subject = '%s', issuer = '%s', max_path_depth = %d",
137 cert->subject, cert->issuer, cert->max_path_depth);
143 int cert_chain_remove(struct rb_root *root, struct cert_source *cert)
146 struct cert_source *matched_cert = cert_chain_search(root, cert->subject, cert->issuer, true);
160 code_sign_log_info("remove trusted cert: subject = '%s', issuer = '%s', max_path_depth = %d",
161 cert->subject, cert->issuer, cert->max_path_depth);
165 code_sign_log_error("can not remove cert type %x", cert->path_type);
275 code_sign_log_error("cert type %x is invalid", code);
287 code_sign_log_error("selinux check failed, no permission to add cert chain");
301 // developer cert
302 code_sign_log_debug("add developer cert");
305 code_sign_log_debug("add release cert");
311 code_sign_log_error("selinux check failed, no permission to remove cert chain");
325 // developer cert
326 code_sign_log_debug("remove developer cert");
329 code_sign_log_debug("remove release cert");
333 code_sign_log_error("remove cert failed.");