Skip to content

Commit f77f7c7

Browse files
authored
Merge pull request #7018 from dgarske/ti_aes
Fixes for TI AES and SHA
2 parents f5ff72a + 4b771a9 commit f77f7c7

7 files changed

Lines changed: 804 additions & 359 deletions

File tree

wolfcrypt/src/asn.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ ASN Options:
9999
* WOLFSSL_ALLOW_ENCODING_CA_FALSE: Allow encoding BasicConstraints CA:FALSE
100100
* which is discouraged by X.690 specification - default values shall not
101101
* be encoded.
102+
* NO_TIME_SIGNEDNESS_CHECK: Disabled the time_t signedness check.
102103
*/
103104

104105
#include <wolfssl/wolfcrypt/error-crypt.h>
@@ -14717,12 +14718,14 @@ int wc_ValidateDate(const byte* date, byte format, int dateType)
1471714718
(void)tmpTime;
1471814719

1471914720
ltime = wc_Time(0);
14721+
#ifndef NO_TIME_SIGNEDNESS_CHECK
1472014722
if (sizeof(ltime) == sizeof(word32) && (int)ltime < 0){
1472114723
/* A negative response here could be due to a 32-bit time_t
1472214724
* where the year is 2038 or later. */
1472314725
WOLFSSL_MSG("wc_Time failed to return a valid value");
1472414726
return 0;
1472514727
}
14728+
#endif
1472614729

1472714730
#ifdef WOLFSSL_BEFORE_DATE_CLOCK_SKEW
1472814731
if (dateType == BEFORE) {

0 commit comments

Comments
 (0)