summaryrefslogtreecommitdiff
path: root/backport/compat/verification/mbedtls/platform.h
blob: cf5fa56f5f1773905adf1c85084afdfd77ca6f51 (plain)
1
2
3
4
5
6
7
8
9
10
11
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 */