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

[openssl backend] remove unnecessary check #466

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

kazuho
Copy link
Member

@kazuho kazuho commented Feb 10, 2023

It seems that since #310, openssl AEAD backend have been testing if supplied key is NULL and returning success if that is the case, while other backends have continued to assume key is non-NULL and crash if a NULL keys is supplied.

I believe this was an unintentional change is #310 and nobody is passing a NULL key (this call path can executed only once per object and passing a NULL key makes AEAD unusable), and therefore this PR removes that if.

… detect supplied `key` being NULL, but how is that intended to work?
@kazuho kazuho merged commit e905c95 into master Feb 10, 2023
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.

1 participant