Fix legacy WSS certificate support and receive retries

Share the APP/kernel TLS profile, enable ECDSA and AES-GCM, and use RTC time for certificate validation. Fix WANT_READ/WANT_WRITE handling during WebSocket upgrade and add ABI, certificate, and receive regression checks.
This commit is contained in:
chenjintao
2026-09-16 14:19:55 +08:00
parent 3e463f57b6
commit 5c3e7eee6d
17 changed files with 1071 additions and 4433 deletions
+4 -2
View File
@@ -959,14 +959,16 @@ int mbedtls_x509_key_size_helper(char *buf, size_t buf_size, const char *name)
* Set the time structure to the current time.
* Return 0 on success, non-zero on failure.
*/
#ifdef QUECTEL_MBEDTLS_SUPPORT
#if defined(QUECTEL_MBEDTLS_SUPPORT) && !defined(TALKINGQ_TLS_USE_RTC_TIME)
#include "utlTime.h"
#include "saremo_RTC.h"
extern void GetCurrentCompTime(TIME *con_time);
#endif/*QUECTEL_MBEDTLS_SUPPORT*/
static int x509_get_current_time(mbedtls_x509_time *now)
{
#ifdef QUECTEL_MBEDTLS_SUPPORT
/* OpenCPU's GetCurrentCompTime is an empty shim. The shared TLS profile uses
* mbedtls_time (SDK RTC) and UTC conversion below instead. */
#if defined(QUECTEL_MBEDTLS_SUPPORT) && !defined(TALKINGQ_TLS_USE_RTC_TIME)
TIME end_time = {0};
GetCurrentCompTime(&end_time);
now->year = end_time.year;