summaryrefslogtreecommitdiff
path: root/shim.h
diff options
context:
space:
mode:
Diffstat (limited to 'shim.h')
-rw-r--r--shim.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/shim.h b/shim.h
index 69442da3..b5272b9c 100644
--- a/shim.h
+++ b/shim.h
@@ -195,6 +195,10 @@
#include "Cryptlib/Include/OpenSslSupport.h"
#endif
+#define MEM_ATTR_R 4
+#define MEM_ATTR_W 2
+#define MEM_ATTR_X 1
+
INTERFACE_DECL(_SHIM_LOCK);
typedef
@@ -248,6 +252,9 @@ extern UINT8 *vendor_authorized;
extern UINT32 vendor_deauthorized_size;
extern UINT8 *vendor_deauthorized;
+extern UINT32 user_cert_size;
+extern UINT8 *user_cert;
+
#if defined(ENABLE_SHIM_CERT)
extern UINT32 build_cert_size;
extern UINT8 *build_cert;
@@ -256,6 +263,8 @@ extern UINT8 *build_cert;
extern UINT8 user_insecure_mode;
extern UINT8 ignore_db;
extern UINT8 trust_mok_list;
+extern UINT8 mok_policy;
+
extern UINT8 in_protocol;
extern void *load_options;
extern UINT32 load_options_size;
@@ -284,6 +293,16 @@ verify_buffer (char *data, int datasize,
#define LogError(fmt, ...)
#endif
+#ifdef ENABLE_SHIM_DEVEL
+#define FALLBACK_VERBOSE_VAR_NAME L"FALLBACK_DEVEL_VERBOSE"
+#define VERBOSE_VAR_NAME L"SHIM_DEVEL_VERBOSE"
+#define DEBUG_VAR_NAME L"SHIM_DEVEL_DEBUG"
+#else
+#define FALLBACK_VERBOSE_VAR_NAME L"FALLBACK_VERBOSE"
+#define VERBOSE_VAR_NAME L"SHIM_VERBOSE"
+#define DEBUG_VAR_NAME L"SHIM_DEBUG"
+#endif
+
char *translate_slashes(char *out, const char *str);
#endif /* SHIM_H_ */