mbedtls/programs/ssl
Gilles Peskine df13d5c7a6 Pass the SSL context to async callbacks
When a handshake step starts an asynchronous operation, the
application needs to know which SSL connection the operation is for,
so that when the operation completes, the application can wake that
connection up. Therefore the async start callbacks need to take the
SSL context as an argument. It isn't enough to let them set a cookie
in the SSL connection, the application needs to be able to find the
right SSL connection later.

Also pass the SSL context to the other callbacks for consistency. Add
a new field to the handshake that the application can use to store a
per-connection context. This new field replaces the former
context (operation_ctx) that was created by the start function and
passed to the resume function.

Add a boolean flag to the handshake structure to track whether an
asynchronous operation is in progress. This is more robust than
relying on the application to set a non-null application context.
2018-04-26 10:00:40 +02:00
..
CMakeLists.txt Fix whitespace in CMakeLists.txt 2015-06-25 10:59:57 +02:00
dtls_client.c Correct the printf message of the DTLS handshake. 2017-10-06 11:58:50 +01:00
dtls_server.c Rename net.{c,h} to net_sockets.{c,h} 2016-09-26 23:23:52 +01:00
mini_client.c Rename net.{c,h} to net_sockets.{c,h} 2016-09-26 23:23:52 +01:00
ssl_client1.c Fix default hostname for verification used in ssl_client1 2017-02-28 22:23:41 +00:00
ssl_client2.c Merge branch 'development' into iotssl-1204 2018-03-28 14:52:35 +01:00
ssl_fork_server.c Rename net.{c,h} to net_sockets.{c,h} 2016-09-26 23:23:52 +01:00
ssl_mail_client.c Fix examples that failed to compile without PEM 2017-02-04 22:59:46 +00:00
ssl_pthread_server.c Rename net.{c,h} to net_sockets.{c,h} 2016-09-26 23:23:52 +01:00
ssl_server2.c Pass the SSL context to async callbacks 2018-04-26 10:00:40 +02:00
ssl_server.c Rename net.{c,h} to net_sockets.{c,h} 2016-09-26 23:23:52 +01:00