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

Surface proper PKCS11 error #617

Merged
merged 1 commit into from
Jan 8, 2024
Merged

Surface proper PKCS11 error #617

merged 1 commit into from
Jan 8, 2024

Conversation

sbSteveK
Copy link
Contributor

@sbSteveK sbSteveK commented Jan 8, 2024

aws_pkcs11_tls_op_handler_new() only returns NULL when something has gone wrong and an error was raised. Calling aws_raise_error(AWS_ERROR_INVALID_ARGUMENT) here overrides a much more useful error code with a generic one.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…rror that occurred during the attempt to create the pkcs11_handler
Copy link
Contributor

@bretambrose bretambrose left a comment

Choose a reason for hiding this comment

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

Hmm ignore this

@sbSteveK sbSteveK merged commit 64c06af into main Jan 8, 2024
33 checks passed
@sbSteveK sbSteveK deleted the unhide-errors branch January 8, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants