eclipse-threadx / netxduo

Eclipse ThreadX - NetXDuo is an advanced, industrial-grade TCP/IP network stack designed specifically for deeply embedded real-time and IoT applications
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/netx-duo/index.md
MIT License
242 stars 137 forks source link

Nx_web_http_server_secure_configure() improper remote certificate list management #113

Closed leobbditestcom closed 2 years ago

leobbditestcom commented 2 years ago

When there is more than one remote certificate being allocated, nx_web_http_server_secure_configure() attempts to re-add the same certificate to remote certificates list, because certificates are being indexed by session index instead of certificate index. This problem went away when the following change was made to nx_tcpserver.c, line 533:

            //status = nx_secure_tls_remote_certificate_allocate(tls_session, remote_certificates[i],
            status = nx_secure_tls_remote_certificate_allocate(tls_session, remote_certificates[cert_count],
wenhui-xie commented 2 years ago

@leobbditestcom Thanks for reporting this issue, we will fix it in the next release.

bo-ms commented 2 years ago

@leobbditestcom closing, the bug fix is released in 6.1.12 now.