mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Merge pull request #7046 from dgarske/crl_cleanups
Various cleanups - CRL and comments - 20231207
This commit is contained in:
@ -54,23 +54,23 @@ SECTIONS
|
||||
. = ALIGN(4);
|
||||
} > FLASH
|
||||
|
||||
/* Custom section for wolfCrypt and LibC to prevent FIPS hash from changing
|
||||
/* Custom section for wolfCrypt and LibC to prevent FIPS hash from changing
|
||||
when application code changes are made */
|
||||
.wolfCryptNonFIPS_text :
|
||||
{
|
||||
. = ALIGN(4);
|
||||
KEEP(*wolf*src*.o(.text .text*))
|
||||
lib_a* ( .text .text*)
|
||||
*wolf*src*.o(.text .text*)
|
||||
. = ALIGN(4);
|
||||
} > FLASH
|
||||
.wolfCryptNonFIPS_rodata :
|
||||
{
|
||||
. = ALIGN(4);
|
||||
KEEP(*wolf*src*.o(.rodata .rodata*))
|
||||
lib_a* (.rodata .rodata*)
|
||||
*wolf*src*.o(.rodata .rodata*)
|
||||
. = ALIGN(4);
|
||||
} > FLASH
|
||||
|
||||
|
||||
.sys : { *(.sys*) } > FLASH
|
||||
.text : { *(.text*) } > FLASH
|
||||
.rodata : { *(.text*) } > FLASH
|
||||
|
@ -393,7 +393,7 @@ static int CheckCertCRLList(WOLFSSL_CRL* crl, byte* issuerHash, byte* serial,
|
||||
if (crle->nextDateFormat != ASN_OTHER_TYPE)
|
||||
#endif
|
||||
{
|
||||
#ifndef NO_ASN_TIME
|
||||
#if !defined(NO_ASN_TIME) && !defined(WOLFSSL_NO_CRL_DATE_CHECK)
|
||||
if (!XVALIDATE_DATE(crle->nextDate,crle->nextDateFormat, AFTER)) {
|
||||
WOLFSSL_MSG("CRL next date is no longer valid");
|
||||
ret = ASN_AFTER_DATE_E;
|
||||
|
@ -14707,6 +14707,9 @@ static WC_INLINE int DateLessThan(const struct tm* a, const struct tm* b)
|
||||
|
||||
/* like atoi but only use first byte */
|
||||
/* Make sure before and after dates are valid */
|
||||
/* date = ASN.1 raw */
|
||||
/* format = ASN_UTC_TIME or ASN_GENERALIZED_TIME */
|
||||
/* dateType = AFTER or BEFORE */
|
||||
int wc_ValidateDate(const byte* date, byte format, int dateType)
|
||||
{
|
||||
time_t ltime;
|
||||
|
@ -33,7 +33,7 @@
|
||||
* WOLF_CRYPTO_CB_CMD
|
||||
*
|
||||
* enable debug InfoString functions
|
||||
* DEBUG_CRYPTO_CB
|
||||
* DEBUG_CRYPTOCB
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
|
Reference in New Issue
Block a user