diff options
author | Claudio Carvalho <cclaudio@linux.vnet.ibm.com> | 2017-12-09 02:52:16 -0200 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-12-18 21:30:57 -0600 |
commit | 594c7a6ae3cccd4a7eeb5ce2c31d2f958672325c (patch) | |
tree | f710a3d8ac4bef339eb8cc23734a92f1a162a1ed /libstb/tss | |
parent | 4fb528b394115ff8dd832b980032d7656aece099 (diff) | |
download | talos-skiboot-594c7a6ae3cccd4a7eeb5ce2c31d2f958672325c.tar.gz talos-skiboot-594c7a6ae3cccd4a7eeb5ce2c31d2f958672325c.zip |
libstb: import stb_init() breaking it into multiple files
This imports stb_init() from stb.c, but breaking it into multiple files
in order to make the code easier to read and to maintain. New files
created: secureboot.c, trustedboot.c and cvc.c.
The secureboot_init() in secureboot.c also initializes the hardware key
hash and the hardware key hash size, which are used to call the CVC
verify wrapper. These variables were initialized in the romcode_probe()
function, libstb/drivers/romcode.c.
The cvc_init() in cvc.c is slightly modified from what exists in
stb_init(). Now it calls cvc_register() and cvc_service_register().
Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libstb/tss')
-rw-r--r-- | libstb/tss/trustedboot.H | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libstb/tss/trustedboot.H b/libstb/tss/trustedboot.H index dccee1a7..bee3b49d 100644 --- a/libstb/tss/trustedboot.H +++ b/libstb/tss/trustedboot.H @@ -19,8 +19,8 @@ * codes to equivalent routines and types in skiboot. ***************************************************************/ -#ifndef __TRUSTEDBOOT_H -#define __TRUSTEDBOOT_H +#ifndef __TSS_TRUSTEDBOOT_H +#define __TSS_TRUSTEDBOOT_H #include <skiboot.h> #include <stdint.h> @@ -69,4 +69,4 @@ typedef enum { IMPLEMENTATION_PCR = 24 } TPM_Pcr; -#endif +#endif /* __TSS_TRUSTEDBOOT_H */ |