# Re: \[PATCH v6 1/3\] certs: export load\_certificate\_list() to be used outside certs/

- From: Jarkko Sakkinen \<jarkko@kernel.org\>
- Date: 2021-12-29 01:29:56 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2021/12/1620234
- Thread: https://ratatoskr.run/linux-integrity/2021/12/1617207/t.md

```text
On Wed, Dec 22, 2021 at 08:39:17PM -0500, Nayna Jain wrote:
> load_certificate_list() parses certificates embedded in the kernel
> image to load them onto the keyring.
> 
> Commit "2565ca7f5ec1 (certs: Move load_system_certificate_list to a common
> function)" made load_certificate_list() a common function in the certs/
> directory. Now, export load_certificate_list() outside certs/ to be used
> by other functions.

It is exported to make callable by load_platform_certificate_list(). Making
anything callable by other functions by itself has no inherit value, and
does not serve as a stimulus to make such code change.

/Jarkko
```
