How mbedtls and lwip (sntp) handle Year 2038 problem? (IDFGH-4533)
Posted: 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.
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.