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>
This commit is contained in:
@@ -31,6 +31,8 @@
|
|||||||
// #define MBEDTLS_DEBUG_C
|
// #define MBEDTLS_DEBUG_C
|
||||||
|
|
||||||
// Set mbedtls configuration.
|
// Set mbedtls configuration.
|
||||||
|
#define MBEDTLS_HAVE_TIME
|
||||||
|
#define MBEDTLS_HAVE_TIME_DATE
|
||||||
#define MBEDTLS_DEPRECATED_REMOVED
|
#define MBEDTLS_DEPRECATED_REMOVED
|
||||||
#define MBEDTLS_AES_ROM_TABLES
|
#define MBEDTLS_AES_ROM_TABLES
|
||||||
#define MBEDTLS_CIPHER_MODE_CBC
|
#define MBEDTLS_CIPHER_MODE_CBC
|
||||||
|
|||||||
@@ -26,10 +26,6 @@
|
|||||||
#ifndef MICROPY_INCLUDED_MBEDTLS_CONFIG_H
|
#ifndef MICROPY_INCLUDED_MBEDTLS_CONFIG_H
|
||||||
#define MICROPY_INCLUDED_MBEDTLS_CONFIG_H
|
#define MICROPY_INCLUDED_MBEDTLS_CONFIG_H
|
||||||
|
|
||||||
// Enable mbedtls modules.
|
|
||||||
#define MBEDTLS_HAVE_TIME
|
|
||||||
#define MBEDTLS_HAVE_TIME_DATE
|
|
||||||
|
|
||||||
// Time hook.
|
// Time hook.
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
extern time_t mimxrt_rtctime_seconds(time_t *timer);
|
extern time_t mimxrt_rtctime_seconds(time_t *timer);
|
||||||
|
|||||||
@@ -26,10 +26,6 @@
|
|||||||
#ifndef MICROPY_INCLUDED_MBEDTLS_CONFIG_H
|
#ifndef MICROPY_INCLUDED_MBEDTLS_CONFIG_H
|
||||||
#define MICROPY_INCLUDED_MBEDTLS_CONFIG_H
|
#define MICROPY_INCLUDED_MBEDTLS_CONFIG_H
|
||||||
|
|
||||||
// Enable mbedtls modules.
|
|
||||||
#define MBEDTLS_HAVE_TIME
|
|
||||||
#define MBEDTLS_HAVE_TIME_DATE
|
|
||||||
|
|
||||||
// Time hook.
|
// Time hook.
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
extern time_t ra_rtctime_seconds(time_t *timer);
|
extern time_t ra_rtctime_seconds(time_t *timer);
|
||||||
|
|||||||
@@ -32,8 +32,6 @@
|
|||||||
|
|
||||||
// Enable mbedtls modules
|
// Enable mbedtls modules
|
||||||
#define MBEDTLS_GCM_C
|
#define MBEDTLS_GCM_C
|
||||||
#define MBEDTLS_HAVE_TIME
|
|
||||||
#define MBEDTLS_HAVE_TIME_DATE
|
|
||||||
|
|
||||||
// Time hook
|
// Time hook
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|||||||
@@ -26,10 +26,6 @@
|
|||||||
#ifndef MICROPY_INCLUDED_MBEDTLS_CONFIG_H
|
#ifndef MICROPY_INCLUDED_MBEDTLS_CONFIG_H
|
||||||
#define MICROPY_INCLUDED_MBEDTLS_CONFIG_H
|
#define MICROPY_INCLUDED_MBEDTLS_CONFIG_H
|
||||||
|
|
||||||
// Enable mbedtls modules.
|
|
||||||
#define MBEDTLS_HAVE_TIME
|
|
||||||
#define MBEDTLS_HAVE_TIME_DATE
|
|
||||||
|
|
||||||
// Time hook.
|
// Time hook.
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
extern time_t stm32_rtctime_seconds(time_t *timer);
|
extern time_t stm32_rtctime_seconds(time_t *timer);
|
||||||
|
|||||||
@@ -29,10 +29,6 @@
|
|||||||
// Set mbedtls configuration
|
// Set mbedtls configuration
|
||||||
#define MBEDTLS_CIPHER_MODE_CTR // needed for MICROPY_PY_CRYPTOLIB_CTR
|
#define MBEDTLS_CIPHER_MODE_CTR // needed for MICROPY_PY_CRYPTOLIB_CTR
|
||||||
|
|
||||||
// Cert time validation
|
|
||||||
#define MBEDTLS_HAVE_TIME
|
|
||||||
#define MBEDTLS_HAVE_TIME_DATE
|
|
||||||
|
|
||||||
// Enable mbedtls modules
|
// Enable mbedtls modules
|
||||||
#define MBEDTLS_HAVEGE_C
|
#define MBEDTLS_HAVEGE_C
|
||||||
#define MBEDTLS_TIMING_C
|
#define MBEDTLS_TIMING_C
|
||||||
|
|||||||
Reference in New Issue
Block a user