tls:updated management of async events handling 50/42850/6
authorVarun Rapelly <[email protected]>
Thu, 17 Apr 2025 05:51:02 +0000 (05:51 +0000)
committerVarun Rapelly <[email protected]>
Fri, 9 May 2025 03:25:42 +0000 (03:25 +0000)
commita5a400af9b51b628e92c4877291084b85716e074
treea88640d9ee158361d282c95ddb047114cefac2d7
parente516773d73c14e461088881b3ca4b4d121043d77
tls:updated management of async events handling

This patch updates the creation of async events for handshake, read
write events. Now it allocates a new event for each async event init
function call and uses a llist to store the event indexes.
During the tls context free, it iterates over the list and frees all
the events. In async handshake event handler, added code to read
early data.
During async handshake or read/write event handlers execution, if
the app session or tls session state indicates app closed state, it
initiates SSL shutdown.

Type: improvement

Signed-off-by: Varun Rapelly <[email protected]>
Change-Id: I97f4c4f3e1b0cd19f1101137bf7ae02ccda545ee
src/plugins/tlsopenssl/tls_async.c
src/plugins/tlsopenssl/tls_openssl.c
src/plugins/tlsopenssl/tls_openssl.h