-
Notifications
You must be signed in to change notification settings - Fork 186
Open
Assignees
@torntrousers
Description
Hello. I'm trying your CSR generating example on an Arduino but the compile fails with:
:\Arduino\arduino-1.8.12\libraries\wolfSSL\asn.c: In function 'SetTime':
C:\Arduino\arduino-1.8.12\libraries\wolfSSL\asn.c:10402:29: error: dereferencing pointer to incomplete type 'struct tm'
output[i++] = itob((date->tm_year % 10000) / 1000);
^
C:\Arduino\arduino-1.8.12\libraries\wolfSSL\asn.c: In function 'SetValidity':
C:\Arduino\arduino-1.8.12\libraries\wolfSSL\asn.c:10461:15: error: storage size of 'localTime' isn't known
struct tm localTime;
^
Is there some time setting somewhere I'm missing?
Thanks!
My user_settings.h file has this:
/* Generated wolfSSL user_settings.h file for Arduino */
#ifndef ARDUINO_USER_SETTINGS_H
#define ARDUINO_USER_SETTINGS_H
/* Platform */
#define WOLFSSL_ARDUINO
/* Math library (remove this to use normal math)*/
#define USE_FAST_MATH
#define TFM_NO_ASM
/* RNG DEFAULT !!FOR TESTING ONLY!! */
/* comment out the error below to get started w/ bad entropy source
* This will need fixed before distribution but is OK to test with */
//#error "needs solved, see: https://www.wolfssl.com/docs/porting-guide/"
#define WOLFSSL_GENSEED_FORTEST
#define WOLFSSL_DER_TO_PEM
#define WOLFSSL_CERT_GEN
#define WOLFSSL_CERT_REQ
#define XGMTIME
#define XTIME fnSecondsSinceEpoch
extern unsigned long my_time(unsigned long* timer);
#define NO_ASN_TIME
#endif /* ARDUINO_USER_SETTINGS_H */
Metadata
Metadata
Assignees
Labels
No labels