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

ssl: use SSL_get1_peer_certificate() in OpenSSL 3 #829

Merged
merged 1 commit into from
May 4, 2024

Conversation

jesferman
Copy link

The function SSL_get_peer_certificate() was deprecated in 3.0.0. Now it is defined as a compatibility macro to SSL_get1_peer_certificate().

However if your OpenSSL 3 is not compiled with the deprecated API included, rabbitmq-c will fail to compile. This commit adds an OpenSSL version check to use the appropriated function.

@jesferman
Copy link
Author

I think the failing CI build is unrelated to the changes in this PR

The function SSL_get_peer_certificate() was deprecated in 3.0.0. Now it is defined as a compatibility macro to SSL_get1_peer_certificate().

However if your OpenSSL 3 is not compiled with the deprecated API included, rabbitmq-c will fail to compile. This commit adds an OpenSSL version check to use the appropriated function.
@alanxz
Copy link
Owner

alanxz commented May 4, 2024

Presubmit should be fixed in #831.

@alanxz alanxz merged commit d37e4a3 into alanxz:master May 4, 2024
14 checks passed
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