summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2013-10-01 13:55:27 -0400
committerPeter Jones <pjones@redhat.com>2013-10-01 14:03:16 -0400
commitf330528786fb02f1771c76818ffc8f1793f5d2f7 (patch)
tree048d338958abf211b5e4148f77b8630f9cadea4e /include
parent4537217422a4e1bf145e135d89284cf7887ad826 (diff)
downloadefi-boot-shim-f330528786fb02f1771c76818ffc8f1793f5d2f7.tar.gz
efi-boot-shim-f330528786fb02f1771c76818ffc8f1793f5d2f7.zip
Conditionalize overriding the security policy.
Make OVERRIDE_SECURITY_POLICY a build option. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/security_policy.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/security_policy.h b/include/security_policy.h
index b0109ce0..7854db11 100644
--- a/include/security_policy.h
+++ b/include/security_policy.h
@@ -1,3 +1,7 @@
+#ifndef _SHIM_LIB_SECURITY_POLICY_H
+#define _SHIM_LIB_SECURITY_POLICY_H 1
+
+#if defined(OVERRIDE_SECURITY_POLICY)
typedef EFI_STATUS (*SecurityHook) (void *data, UINT32 len);
EFI_STATUS
@@ -6,3 +10,6 @@ EFI_STATUS
security_policy_uninstall(void);
void
security_protocol_set_hashes(unsigned char *esl, int len);
+#endif /* OVERRIDE_SECURITY_POLICY */
+
+#endif /* SHIM_LIB_SECURITY_POLICY_H */