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

Remove NULLing of ssl context in TLS1.2 transform population #8384

Merged

Conversation

paul-elliott-arm
Copy link
Member

@paul-elliott-arm paul-elliott-arm commented Oct 18, 2023

Description

Remove a piece of code that was meant to ensure non-usage of the ssl context (by NULL-ing it) under conditions where it should not be used, as this now makes less sense and also triggers coverity.

Also remove redundant NULL check on the ssl contextt further down the function.

PR checklist

Please tick as appropriate and edit the reasons (e.g.: "backport: not needed because this is a new feature")

Have to admit I'm not entirely sure about backporting this one - its not a security fix, just a simplification. I have done the backport, but feel free to express views on this.

@paul-elliott-arm paul-elliott-arm added needs-review Every commit must be reviewed by at least two team members, component-tls needs-ci Needs to pass CI tests needs-reviewer This PR needs someone to pick it up for review single-reviewer This PR qualifies for having only one reviewer priority-high High priority - will be reviewed soon size-xs Estimated task size: extra small (a few hours at most) labels Oct 18, 2023
@paul-elliott-arm paul-elliott-arm self-assigned this Oct 18, 2023
@paul-elliott-arm paul-elliott-arm changed the title Remove debug NULLing of ssl context in TLS1.2 transform population Remove NULLing of ssl context in TLS1.2 transform population Oct 18, 2023
Remove a piece of code that was meant to ensure non-usage of the ssl
context under conditions where it should not be used, as this now makes
less sense and also triggers coverity.

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
Copy link
Contributor

@gilles-peskine-arm gilles-peskine-arm left a comment

Choose a reason for hiding this comment

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

LGTM

@gilles-peskine-arm gilles-peskine-arm removed needs-ci Needs to pass CI tests single-reviewer This PR qualifies for having only one reviewer labels Dec 21, 2023
@tom-cosgrove-arm tom-cosgrove-arm added approved Design and code approved - may be waiting for CI or backports and removed needs-review Every commit must be reviewed by at least two team members, needs-reviewer This PR needs someone to pick it up for review labels Dec 21, 2023
@tom-cosgrove-arm tom-cosgrove-arm added this pull request to the merge queue Dec 21, 2023
Merged via the queue into Mbed-TLS:development with commit c6088ec Dec 21, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Design and code approved - may be waiting for CI or backports component-tls priority-high High priority - will be reviewed soon size-xs Estimated task size: extra small (a few hours at most)
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants