Open
Description
Problem:
The config
pointer in s2n_connection
struct might be invalid during connection reuse. The s2n_config
struct could be released at sometime before the s2n_connection
struct is reused, which makes the pointer pointing to an invalid address, when the connection is actually reused.
Solution:
Create a new API which reset the config
pointer in s2n_connection
to the default config that the user is using. This can also simplify the management of s2n_connection
without requiring deep understanding of how s2n_config
is stored in s2n_connection
.
Requirements / Acceptance Criteria:
After we wipe a s2n_connection
struct and make it ready for connection reuse, we should test whether the config
pointer is pointing to the default config.