函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\platform_certs\load_powerpc.c Create Date:2022-07-27 21:56:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Get a certificate list blob from the named secure variable.

函数原型:static __init void *get_cert_list(u8 *key, unsigned long keylen, uint64_t *size)

返回类型:void

参数:

类型参数名称
u8 *key
unsigned longkeylen
uint64_t *size
26  rc等于get(key, keylen, NULL, size)
27  如果rc
28  打印错误信息("Couldn't get size: %d\n", rc)
29  返回:NULL
32  db等于开辟内存
33  如果非db则返回:NULL
36  rc等于get(key, keylen, db, size)
37  如果rc
38  释放内存
39  打印错误信息("Error reading %s var: %d\n", key, rc)
40  返回:NULL
43  返回:db
调用者
名称描述
load_powerpc_certsLoad the certs contained in the keys databases into the platform trusted* keyring and the blacklisted X.509 cert SHA256 hashes into the blacklist* keyring.