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

wwll123
Posts: 4
Joined: Mon Jul 27, 2020 6:44 am

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

Postby wwll123 » Thu Dec 31, 2020 3:55 am

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.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

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

Postby ESP_Angus » Tue Jan 05, 2021 3:56 am

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

Who is online

Users browsing this forum: No registered users and 68 guests