Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ingela/ssl gen statem/otp 13464 #1037

Closed

Conversation

IngelaAndin
Copy link
Contributor

The ssl application has been rewritten to use the new behaviour gen_statem. This makes the semantics clearer and avoids some timing issues in the old code. I also think this will make it easier to
complete the DTLS implementation.

Also reduce timing issues in tests
DTLS is not in working mode yet, but the gen_statem rewrite should make
completion easier.
@IngelaAndin IngelaAndin added team:PS Assigned to OTP team PS enhancement labels Apr 29, 2016
@IngelaAndin IngelaAndin self-assigned this Apr 29, 2016
@OTP-Maintainer
Copy link

Patch has passed first testings and has been assigned to be reviewed


I am a script, I am not human


next_state(StateName, connection, Record, State#state{premaster_secret = undefined,
public_key_info = undefined,
tls_handshake_history = ssl_handshake:init_handshake_history()}).

Copy link
Contributor

@RoadRunnr RoadRunnr May 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the code to clear the premaster_secret, public_key_info and tls_handshake_history was completely removed.

Is that intended? I guess the new place to do that would be in ssl_connection:prepare_connection ?

Would something like that work: RoadRunnr@40cdec7

@IngelaAndin
Copy link
Contributor Author

Good catch it was not intentional I think we should put it in ssl_connection:prepare_connection as you suggested.

I merged a later version of this (some dialyzer issues where fixed) branch today as it was deemed stable enough and so that we can continue the work with other PR.

@IngelaAndin IngelaAndin closed this May 4, 2016
@RoadRunnr
Copy link
Contributor

Good catch it was not intentional I think we should put it in ssl_connection:prepare_connection as you suggested.

Please, make it a callback into the {tls,dtls}_connection module. For DTLS there are some additional things to reset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement team:PS Assigned to OTP team PS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants