Skip to content

Feature Request: new API to set s2n_connection->config to default config #4984

Open
@boquan-fang

Description

@boquan-fang

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions