summaryrefslogtreecommitdiffstats
path: root/src/gsm/milenage/common.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-12-06 22:23:52 +0100
committerHarald Welte <laforge@gnumonks.org>2011-12-06 22:50:31 +0100
commit781bd5daeb98774628ccb7546d449704ea6f7330 (patch)
tree64a910b7b3679b1fbedaf21d6d119b1f7b87ba0e /src/gsm/milenage/common.h
parentd82e0eb697abab4eb994800ab649bc36cca99a83 (diff)
Auth: Import milenage implementation from hostap (Jouni Malinen)
... and add integration into the osmo_auth core.
Diffstat (limited to 'src/gsm/milenage/common.h')
-rw-r--r--src/gsm/milenage/common.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gsm/milenage/common.h b/src/gsm/milenage/common.h
new file mode 100644
index 00000000..aaf82b97
--- /dev/null
+++ b/src/gsm/milenage/common.h
@@ -0,0 +1,20 @@
+
+#include <stdint.h>
+#include <stdlib.h>
+#include <string.h>
+
+#define MSG_DEBUG
+#define wpa_hexdump(x, args...)
+#define wpa_hexdump_key(x, args...)
+#define wpa_printf(x, args...)
+
+#define os_memcpy(x, y, z) memcpy(x, y, z)
+#define os_memcmp(x, y, z) memcmp(x, y, z)
+#define os_memset(x, y, z) memset(x, y, z)
+#define os_malloc(x) malloc(x)
+#define os_free(x) free(x)
+
+typedef uint8_t u8;
+typedef uint32_t u32;
+
+#define __must_check