mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-05 21:54:41 +02:00
Document new macro and rename to: NO_TIME_SIGNEDNESS_CHECK
This commit is contained in:
@@ -99,6 +99,7 @@ ASN Options:
|
|||||||
* WOLFSSL_ALLOW_ENCODING_CA_FALSE: Allow encoding BasicConstraints CA:FALSE
|
* WOLFSSL_ALLOW_ENCODING_CA_FALSE: Allow encoding BasicConstraints CA:FALSE
|
||||||
* which is discouraged by X.690 specification - default values shall not
|
* which is discouraged by X.690 specification - default values shall not
|
||||||
* be encoded.
|
* be encoded.
|
||||||
|
* NO_TIME_SIGNEDNESS_CHECK: Disabled the time_t signedness check.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/error-crypt.h>
|
#include <wolfssl/wolfcrypt/error-crypt.h>
|
||||||
@@ -14726,7 +14727,7 @@ int wc_ValidateDate(const byte* date, byte format, int dateType)
|
|||||||
(void)tmpTime;
|
(void)tmpTime;
|
||||||
|
|
||||||
ltime = wc_Time(0);
|
ltime = wc_Time(0);
|
||||||
#ifndef NO_TIME_SIGNED_CHECK
|
#ifndef NO_TIME_SIGNEDNESS_CHECK
|
||||||
if (sizeof(ltime) == sizeof(word32) && (int)ltime < 0){
|
if (sizeof(ltime) == sizeof(word32) && (int)ltime < 0){
|
||||||
/* A negative response here could be due to a 32-bit time_t
|
/* A negative response here could be due to a 32-bit time_t
|
||||||
* where the year is 2038 or later. */
|
* where the year is 2038 or later. */
|
||||||
|
@@ -1026,7 +1026,7 @@ extern void uITRON4_free(void *p) ;
|
|||||||
#if defined(__ti__) && !defined(USER_TIME)
|
#if defined(__ti__) && !defined(USER_TIME)
|
||||||
/* TI internal time() offsets by 2208988800 (1990 -> 1970),
|
/* TI internal time() offsets by 2208988800 (1990 -> 1970),
|
||||||
* which overflows signed 32-bit */
|
* which overflows signed 32-bit */
|
||||||
#define NO_TIME_SIGNED_CHECK
|
#define NO_TIME_SIGNEDNESS_CHECK
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user