8000 extmod/mbedtls: Enable certificate time/date validation by default. · micropython/micropython@b5449b0 · GitHub
[go: up one dir, main page]

Skip to content

Commit b5449b0

Browse files
committed
extmod/mbedtls: Enable certificate time/date validation by default.
All ports using this common configuration already enable time/date validation, so this commit is a no-op change. Signed-off-by: Damien George <damien@micropython.org>
1 parent 20ffbe1 commit b5449b0

File tree

6 files changed

+2
-18
lines changed

6 files changed

+2
-18
lines changed

extmod/mbedtls/mbedtls_config_common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
// #define MBEDTLS_DEBUG_C
3232

3333
// Set mbedtls configuration.
34+
#define MBEDTLS_HAVE_TIME
35+
#define MBEDTLS_HAVE_TIME_DATE
3436
#define MBEDTLS_DEPRECATED_REMOVED
3537
#define MBEDTLS_AES_ROM_TABLES
3638
#define MBEDTLS_CIPHER_MODE_CBC

ports/mimxrt/mbedtls/mbedtls_config.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
#ifndef MICROPY_INCLUDED_MBEDTLS_CONFIG_H
2727
#define MICROPY_INCLUDED_MBEDTLS_CONFIG_H
2828

29-
// Enable mbedtls modules.
30-
#define MBEDTLS_HAVE_TIME
31-
#define MBEDTLS_HAVE_TIME_DATE
32-
3329
// Time hook.
3430
#include <time.h>
3531
extern time_t mimxrt_rtctime_seconds(time_t *timer);

ports/renesas-ra/mbedtls/mbedtls_config.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
#ifndef MICROPY_INCLUDED_MBEDTLS_CONFIG_H
2727
#define MICROPY_INCLUDED_MBEDTLS_CONFIG_H
2828

29-
// Enable mbedtls modules.
30-
#define MBEDTLS_HAVE_TIME
31-
#define MBEDTLS_HAVE_TIME_DATE
32-
3329
// Time hook.
3430
#include <time.h>
3531
extern time_t ra_rtctime_seconds(time_t *timer);

ports/rp2/mbedtls/mbedtls_config.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232

3333
// Enable mbedtls modules
3434
#define MBEDTLS_GCM_C
35-
#define MBEDTLS_HAVE_TIME
36-
#define MBEDTLS_HAVE_TIME_DATE
3735

3836
// Time hook
3937
#include <time.h>

ports/stm32/mbedtls/mbedtls_config.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
#ifndef MICROPY_INCLUDED_MBEDTLS_CONFIG_H
2727
#define MICROPY_INCLUDED_MBEDTLS_CONFIG_H
2828

29-
// Enable mbedtls modules.
30-
#define MBEDTLS_HAVE_TIME
31-
#define MBEDTLS_HAVE_TIME_DATE
32-
3329
// Time hook.
3430
#include <time.h>
3531
extern time_t stm32_rtctime_seconds(time_t *timer);

ports/unix/mbedtls/mbedtls_config.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@
2929
// Set mbedtls configuration
3030
#define MBEDTLS_CIPHER_MODE_CTR // needed for MICROPY_PY_CRYPTOLIB_CTR
3131

32-
// Cert time validation
33-
#define MBEDTLS_HAVE_TIME
34-
#define MBEDTLS_HAVE_TIME_DATE
35-
3632
// Enable mbedtls modules
3733
#define MBEDTLS_HAVEGE_C
3834
#define MBEDTLS_TIMING_C

0 commit comments

Comments
 (0)
0