Page 1 of 1

How mbedtls and lwip (sntp) handle Year 2038 problem? (IDFGH-4533)

Posted: Thu Dec 31, 2020 3:55 am
by wwll123
Hi,
My device is currently using ESP-IDF v4.1 with custom toolchain in order to support 64bit time_t.
(https://docs.espressif.com/projects/esp ... ratch.html)

However, with certificate expiry check enable in mbedtls and using sntp from lwip to sync utc time, I would like to know how these modules handle Year 2038 problem.
1. Does mbedtls use system time from sntp to check the certificate expiry? Will Year 2038 problem affect certificate expiry check?
2. Sntp is still using 32-bit for second in lwip library. How does it handle Year 2038 problem?

Thanks.

Re: How mbedtls and lwip (sntp) handle Year 2038 problem?

Posted: Tue Jan 05, 2021 3:56 am
by ESP_Angus
Hi wwll,

We'll need to check the details on this and get back you. I've edited the topic to include our internal tracking id.

Angus