| 1 | |
| 2 | |
| 3 | @@ -19,7 +19,7 @@
|
| 4 | bindir = $(exec_prefix)/bin
|
| 5 |
|
| 6 | # mbed TLS libraries
|
| 7 | -MBEDTLS_DIR = $(PWD)/mbedtls
|
| 8 | +MBEDTLS_DIR = /usr/include/
|
| 9 | MBEDTLS_CONFIG = $(PWD)/configs/mbedtls.h
|
| 10 | MBEDTLS_CFLAGS = -DMBEDTLS_CONFIG_FILE='\"$(MBEDTLS_CONFIG)\"' $(CFLAGS)
|
| 11 |
|
| 12 | @@ -39,7 +39,7 @@
|
| 13 | # Default target: compile all programs
|
| 14 | all: $(BINS)
|
| 15 |
|
| 16 | -%: %.o $(LIBSOBJ) $(STATICLIBS)
|
| 17 | +%: %.o $(LIBSOBJ)
|
| 18 | $(CC) $(ALL_CFLAGS) $(LIBSOBJ) $< -o $@ $(LDFLAGS)
|
| 19 |
|
| 20 | %.o: %.c $(HEADERS)
|
| 21 |
|
| 22 | |
| 23 | |
| 24 | @@ -24,6 +24,6 @@
|
| 25 | #define MBEDTLS_HAVE_ASM
|
| 26 | #define MBEDTLS_PLATFORM_C
|
| 27 |
|
| 28 | -#include "mbedtls/check_config.h"
|
| 29 | +#include <mbedtls/check_config.h>
|
| 30 |
|
| 31 | #endif
|
| 32 |
|
| 33 | |
| 34 | |
| 35 | @@ -7,8 +7,8 @@
|
| 36 |
|
| 37 | #include "nfc3d/amiibo.h"
|
| 38 | #include "util.h"
|
| 39 | -#include "mbedtls/md.h"
|
| 40 | -#include "mbedtls/aes.h"
|
| 41 | +#include <mbedtls/md.h>
|
| 42 | +#include <mbedtls/aes.h>
|
| 43 | #include <errno.h>
|
| 44 | #include "portable_endian.h"
|
| 45 |
|
| 46 | |
| 47 | |
| 48 | @@ -10,7 +10,7 @@
|
| 49 |
|
| 50 | #include <stdbool.h>
|
| 51 | #include <stdint.h>
|
| 52 | -#include "mbedtls/md.h"
|
| 53 | +#include <mbedtls/md.h>
|
| 54 |
|
| 55 | #define NFC3D_DRBG_MAX_SEED_SIZE 480 /* Hardcoded max size in 3DS NFC module */
|
| 56 | #define NFC3D_DRBG_OUTPUT_SIZE 32 /* Every iteration generates 32 bytes */
|