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
cloud oauth_client: update for OpenSSL 1.1.0 compatibility #24666
Conversation
Related Gentoo bug: https://bugs.gentoo.org/673968 |
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.
Thank you for the fix!
Could you please add comments near the EVP_MD_CTX_destroy
calls that EVP_MD_CTX_destroy
is renamed to EVP_MD_CTX_free
in OpenSSL 1.1.0 but the old name is still retained as macro; and maybe add a link to the change notes? Just for reference.
EVP_MD_CTX_cleanup was removed in OpenSSL 1.1.0. There is a call to EVP_MD_CTX_destroy right after and _destroy will call _cleanup if required. EVP_MD_CTX_destroy exists in OpenSSL 1.0, 1.1 and BoringSSL so removing the call to _cleanup works everywhere. Signed-off-by: Jason Zaman <jason@perfinion.com>
@penpornk Good idea, I pushed an update with the comment and a note to not change it till support is dropped for 1.0.x. |
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.
Awesome! Thank you very much again for the PR! :)
PiperOrigin-RevId: 228214198
EVP_MD_CTX_cleanup was removed in OpenSSL 1.1.0. There is a call to
EVP_MD_CTX_destroy right after and _destroy will call _cleanup if
required. EVP_MD_CTX_destroy exists in OpenSSL 1.0, 1.1 and BoringSSL so
removing the call to _cleanup works everywhere.
Signed-off-by: Jason Zaman jason@perfinion.com