Changeset View
Changeset View
Standalone View
Standalone View
lib/libsecureboot/h/verify_file.h
Show All 21 Lines | |||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _VERIFY_FILE_H_ | #ifndef _VERIFY_FILE_H_ | ||||
#define _VERIFY_FILE_H_ | #define _VERIFY_FILE_H_ | ||||
#define VE_GUESS -1 /* let verify_file work it out */ | #define VE_GUESS -1 /* let verify_file work it out */ | ||||
sjg: FWIW I just added `struct stat;` but haven't been able to update the review | |||||
Not Done Inline ActionsOk, I'll remove it. I supposed that in the end I'll have to rebase on your path after it is merged into the tree. kd: Ok, I'll remove it. I supposed that in the end I'll have to rebase on your path after it is… | |||||
#define VE_TRY 0 /* we don't mind if unverified */ | #define VE_TRY 0 /* we don't mind if unverified */ | ||||
#define VE_WANT 1 /* we want this verified */ | #define VE_WANT 1 /* we want this verified */ | ||||
#define VE_MUST 2 /* this must be verified */ | #define VE_MUST 2 /* this must be verified */ | ||||
#define VE_VERIFIED 1 /* all good */ | #define VE_VERIFIED 1 /* all good */ | ||||
#define VE_UNVERIFIED_OK 0 /* not verified but that's ok */ | #define VE_UNVERIFIED_OK 0 /* not verified but that's ok */ | ||||
#define VE_NOT_VERIFYING 2 /* we are not verifying */ | #define VE_NOT_VERIFYING 2 /* we are not verifying */ | ||||
struct stat; | struct stat; | ||||
void ve_debug_set(int); | void ve_debug_set(int); | ||||
int ve_status_get(int); | int ve_status_get(int); | ||||
void ve_efi_init(void); | |||||
Not Done Inline Actionscan you make sure this is aligned with other prototypes sjg: can you make sure this is aligned with other prototypes | |||||
int load_manifest(const char *, const char *, const char *, struct stat *); | int load_manifest(const char *, const char *, const char *, struct stat *); | ||||
int verify_file(int, const char *, off_t, int); | int verify_file(int, const char *, off_t, int); | ||||
void verify_pcr_export(void); | void verify_pcr_export(void); | ||||
#endif /* _VERIFY_FILE_H_ */ | #endif /* _VERIFY_FILE_H_ */ |
FWIW I just added struct stat; but haven't been able to update the review