forked from wolfSSL/wolfssl
Minor build fixes for CryptoAuthLib with ATECC508A or ATECC608A.
This commit is contained in:
@@ -114,6 +114,8 @@ int atmel_get_random_block(unsigned char* output, unsigned int sz)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(WOLFSSL_ATMEL) && defined(WOLFSSL_ATMEL_TIME)
|
#if defined(WOLFSSL_ATMEL) && defined(WOLFSSL_ATMEL_TIME)
|
||||||
|
#include "asf.h"
|
||||||
|
#include "rtc_calendar.h"
|
||||||
extern struct rtc_module *_rtc_instance[RTC_INST_NUM];
|
extern struct rtc_module *_rtc_instance[RTC_INST_NUM];
|
||||||
|
|
||||||
long atmel_get_curr_time_and_date(long* tm)
|
long atmel_get_curr_time_and_date(long* tm)
|
||||||
|
@@ -72,7 +72,10 @@ struct ecc_key;
|
|||||||
int atmel_init(void);
|
int atmel_init(void);
|
||||||
void atmel_finish(void);
|
void atmel_finish(void);
|
||||||
int atmel_get_random_number(uint32_t count, uint8_t* rand_out);
|
int atmel_get_random_number(uint32_t count, uint8_t* rand_out);
|
||||||
|
#ifndef ATMEL_GET_RANDOM_BLOCK_DEFINED
|
||||||
int atmel_get_random_block(unsigned char* output, unsigned int sz);
|
int atmel_get_random_block(unsigned char* output, unsigned int sz);
|
||||||
|
#define ATMEL_GET_RANDOM_BLOCK_DEFINED
|
||||||
|
#endif
|
||||||
long atmel_get_curr_time_and_date(long* tm);
|
long atmel_get_curr_time_and_date(long* tm);
|
||||||
|
|
||||||
#ifdef WOLFSSL_ATECC508A
|
#ifdef WOLFSSL_ATECC508A
|
||||||
|
@@ -439,8 +439,7 @@ WOLFSSL_API int wolfCrypt_Cleanup(void);
|
|||||||
#endif
|
#endif
|
||||||
#define XGMTIME(c, t) gmtime((c))
|
#define XGMTIME(c, t) gmtime((c))
|
||||||
|
|
||||||
#elif defined(WOLFSSL_ATMEL)
|
#elif defined(WOLFSSL_ATMEL) && defined(WOLFSSL_ATMEL_TIME)
|
||||||
extern long atmel_get_curr_time_and_date(long* tm);
|
|
||||||
#define XTIME(t1) atmel_get_curr_time_and_date((t1))
|
#define XTIME(t1) atmel_get_curr_time_and_date((t1))
|
||||||
#define WOLFSSL_GMTIME
|
#define WOLFSSL_GMTIME
|
||||||
#define USE_WOLF_TM
|
#define USE_WOLF_TM
|
||||||
|
Reference in New Issue
Block a user