Skip to content
New issue

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

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

Already on GitHub? # to your account

don't crash if user tried to use private key without password #119

Merged
merged 1 commit into from
Aug 7, 2019

Conversation

weissi
Copy link
Member

@weissi weissi commented Jul 31, 2019

Motivation:

Previously, if the user tried to open a private key that had a password
but didn't specify one, we would just crash.

Modifications:

Throw an error instead of crashing if no password was supplied but one
was needed.

Result:

Fewer crashes.

@weissi weissi requested a review from Lukasa July 31, 2019 17:30
@weissi weissi force-pushed the jw-no-password-dont-crash branch from e4856d5 to 8c765c4 Compare July 31, 2019 17:36
@weissi weissi added the 🆕 semver/minor Adds new public API. label Jul 31, 2019
@weissi weissi force-pushed the jw-no-password-dont-crash branch from 8c765c4 to 20bc66c Compare August 5, 2019 15:09
@weissi
Copy link
Member Author

weissi commented Aug 5, 2019

@Lukasa ok, updated

@weissi weissi force-pushed the jw-no-password-dont-crash branch from 20bc66c to c095f58 Compare August 5, 2019 15:11
@Lukasa Lukasa added this to the 2.3.0 milestone Aug 5, 2019
@Lukasa Lukasa added 🔨 semver/patch No public API change. and removed 🆕 semver/minor Adds new public API. labels Aug 5, 2019
Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

Minor test fixups.

Motivation:

Previously, if the user tried to open a private key that had a password
but didn't specify one, we would just crash.

Modifications:

Throw an error instead of crashing if no password was supplied but one
was needed.

Result:

Fewer crashes.
@weissi weissi force-pushed the jw-no-password-dont-crash branch from 81e389e to 3f64e77 Compare August 6, 2019 12:24
@weissi
Copy link
Member Author

weissi commented Aug 6, 2019

should be addressed by apple/swift-nio#1093

@weissi weissi requested a review from Lukasa August 7, 2019 10:55
@Lukasa Lukasa merged commit 2e85284 into apple:master Aug 7, 2019
@weissi weissi deleted the jw-no-password-dont-crash branch August 7, 2019 11:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants