summaryrefslogtreecommitdiff
path: root/compat/verification/mbedtls/platform.h
diff options
context:
space:
mode:
authorDominik Sliwa <dominik.sliwa@toradex.com>2018-09-14 10:41:12 +0200
committerDominik Sliwa <dominik.sliwa@toradex.com>2018-09-14 10:41:12 +0200
commit6142e8731c3e5b9c9f96d9af83052b9787604b39 (patch)
tree45b17840142b10874bf8974a74152eb3f9021e82 /compat/verification/mbedtls/platform.h
initial commit
Generated againts 4.18 kernel source with git backports 0795d050c62e04c7c4fd7fcb554756e6adb4ec64 Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Diffstat (limited to 'compat/verification/mbedtls/platform.h')
-rw-r--r--compat/verification/mbedtls/platform.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/compat/verification/mbedtls/platform.h b/compat/verification/mbedtls/platform.h
new file mode 100644
index 0000000..cf5fa56
--- /dev/null
+++ b/compat/verification/mbedtls/platform.h
@@ -0,0 +1,12 @@
+#ifndef __MBEDTLS_PLATFORM_H
+#define __MBEDTLS_PLATFORM_H
+#include <linux/kernel.h>
+#include <linux/slab.h>
+#include <linux/string.h>
+
+#define mbedtls_printf pr_debug
+#define mbedtls_calloc(a, b) kcalloc(a, b, GFP_KERNEL)
+#define mbedtls_free kfree
+#define mbedtls_snprintf snprintf
+
+#endif /* __MBEDTLS_PLATFORM_H */