Fix headers in emulation mode.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -19,7 +19,11 @@
|
|||||||
#define _CVC_H_
|
#define _CVC_H_
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#ifndef ENABLE_EMULATION
|
||||||
#include "pico/stdlib.h"
|
#include "pico/stdlib.h"
|
||||||
|
#else
|
||||||
|
#include <stdbool.h>
|
||||||
|
#endif
|
||||||
#include "mbedtls/ecp.h"
|
#include "mbedtls/ecp.h"
|
||||||
|
|
||||||
typedef struct PUK {
|
typedef struct PUK {
|
||||||
|
|||||||
@@ -19,6 +19,9 @@
|
|||||||
#define _DKEK_H_
|
#define _DKEK_H_
|
||||||
|
|
||||||
#include "crypto_utils.h"
|
#include "crypto_utils.h"
|
||||||
|
#ifdef ENABLE_EMULATION
|
||||||
|
#include <stdbool.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
extern int load_mkek(uint8_t *);
|
extern int load_mkek(uint8_t *);
|
||||||
extern int store_mkek(const uint8_t *);
|
extern int store_mkek(const uint8_t *);
|
||||||
|
|||||||
@@ -22,7 +22,9 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "mbedtls/rsa.h"
|
#include "mbedtls/rsa.h"
|
||||||
#include "mbedtls/ecdsa.h"
|
#include "mbedtls/ecdsa.h"
|
||||||
|
#ifndef ENABLE_EMULATION
|
||||||
#include "pico/stdlib.h"
|
#include "pico/stdlib.h"
|
||||||
|
#endif
|
||||||
#include "file.h"
|
#include "file.h"
|
||||||
#include "apdu.h"
|
#include "apdu.h"
|
||||||
#include "hsm.h"
|
#include "hsm.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user