forked from wolfSSL/wolfssl
Added NO_ASN_TIME macro to avoid cert expiration validation
This commit is contained in:
@ -80,7 +80,6 @@
|
|||||||
#define CURVE25519_SMALL
|
#define CURVE25519_SMALL
|
||||||
#define HAVE_ED25519
|
#define HAVE_ED25519
|
||||||
|
|
||||||
#define WC_RSA_BLINDING
|
|
||||||
#define WOLFSSL_STATIC_RSA
|
#define WOLFSSL_STATIC_RSA
|
||||||
|
|
||||||
|
|
||||||
@ -94,6 +93,15 @@
|
|||||||
#define min(data1, data2) _builtin_min(data1, data2)
|
#define min(data1, data2) _builtin_min(data1, data2)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* -- "NO_ASN_TIME" macro is to avoid certificate expiration validation --
|
||||||
|
*
|
||||||
|
* Note. In your actual products, do not forget to comment-out
|
||||||
|
* "NO_ASN_TIME" macro. And prepare time function to get calender time,
|
||||||
|
* otherwise, certificate expiration validation will not work.
|
||||||
|
*/
|
||||||
|
#define NO_ASN_TIME
|
||||||
|
|
||||||
#define NO_MAIN_DRIVER
|
#define NO_MAIN_DRIVER
|
||||||
#define BENCH_EMBEDDED
|
#define BENCH_EMBEDDED
|
||||||
#define NO_WOLFSSL_DIR
|
#define NO_WOLFSSL_DIR
|
||||||
@ -113,6 +121,7 @@
|
|||||||
#define USE_WOLF_TIMEVAL_T
|
#define USE_WOLF_TIMEVAL_T
|
||||||
|
|
||||||
#define WOLFSSL_USER_CURRTIME /* for benchmark */
|
#define WOLFSSL_USER_CURRTIME /* for benchmark */
|
||||||
|
#define WC_RSA_BLINDING
|
||||||
#define TFM_TIMING_RESISTANT
|
#define TFM_TIMING_RESISTANT
|
||||||
#define ECC_TIMING_RESISTANT
|
#define ECC_TIMING_RESISTANT
|
||||||
|
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
typedef unsigned long time_t;
|
typedef unsigned long time_t;
|
||||||
|
|
||||||
#define YEAR 2019
|
#define YEAR 2020
|
||||||
#define MON 5
|
#define MON 7
|
||||||
|
|
||||||
static int tick = 0;
|
static int tick = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user