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
Add null digest implementation to the default provider #17016
Conversation
This is necessary to keep compatibility with 1.1.1. Fixes openssl#16660
} | ||
|
||
#undef PROV_FUNC_DIGEST_FINAL | ||
#define PROV_FUNC_DIGEST_FINAL(name, dgstsize, fin) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wonder why this custom version of PROV_FUNC_DIGEST_FINAL is necessary. The only difference seems to be the check outsz >= dgstsize
which presumably will always be true for the NULL digest since dgstize
is 0. Or perhaps this triggers compilation warnings? Is that the justification? Possibly a comment explaining that if that is the case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this causes compilation warnings otherwise.
This pull request is ready to merge |
This is necessary to keep compatibility with 1.1.1. Fixes #16660 Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from openssl/openssl#17016) (cherry picked from commit bef9b48)
This is necessary to keep compatibility with 1.1.1. Fixes #16660 Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from openssl/openssl#17016)
Merged to master and 3.0 branches. Thank you for the review. |
This is necessary to keep compatibility with 1.1.1. Fixes openssl#16660 Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from openssl#17016)
This is necessary to keep compatibility with 1.1.1.
Fixes #16660
Checklist