Lines Matching refs:source
207 struct cert_source *source = kzalloc(sizeof(struct cert_source), GFP_KERNEL);
209 if (!source)
227 source->subject = kzalloc(info.signing_length + 1, GFP_KERNEL);
228 if (!source->subject) {
233 if (copy_from_user(source->subject, u64_to_user_ptr(info.signing_ptr), info.signing_length)) {
239 source->issuer = kzalloc(info.issuer_length + 1, GFP_KERNEL);
240 if (!source->issuer) {
245 ret = copy_from_user(source->issuer, u64_to_user_ptr(info.issuer_ptr), info.issuer_length);
252 source->max_path_depth = info.path_len;
253 source->path_type = info.cert_type;
255 *_source = source;
259 kfree(source->issuer);
261 kfree(source->subject);
263 kfree(source);
282 struct cert_source *source;
291 ret = parse_cert_source(args, &source);
296 ret = code_sign_check_code(source->path_type);
303 ret = cert_chain_insert(&dev_cert_chain_tree, source);
306 ret = cert_chain_insert(&cert_chain_tree, source);
315 ret = parse_cert_source(args, &source);
320 ret = code_sign_check_code(source->path_type);
327 ret = cert_chain_remove(&dev_cert_chain_tree, source);
330 ret = cert_chain_remove(&cert_chain_tree, source);