-
Notifications
You must be signed in to change notification settings - Fork 479
fix compilation without deprecated APIs #1053
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
Conversation
can you please include which OS and openssl version the warning comes from ? please include the relevant build output. |
Output is basically the opposite of this: https://travis-ci.org/github/baresip/baresip/jobs/715650996 Tested on OpenWrt with OpenSSL deprecated APIs disabled. This can be simulated by passing -DOPENSSL_API_COMPAT=0x10100000L and -Werror=implicit-function-declaration . |
can you make sure that the patch works with all supported versions of OpenSSL:
https://github.com/baresip/baresip/wiki/Supported-platforms#supported-versions-of-openssl |
@@ -56,7 +60,7 @@ static int print_system_info(struct re_printf *pf, void *arg) | |||
|
|||
#ifdef USE_OPENSSL | |||
err |= re_hprintf(pf, " OpenSSL: %s\n", | |||
SSLeay_version(SSLEAY_VERSION)); | |||
OpenSSL_version(OPENSSL_VERSION)); |
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.
is it not better to check for the version that the function was added ?
#if VERSION >= X
OpenSSL_version(OPENSSL_VERSION);
#else
SSLeay_version(SSLEAY_VERSION);
#endif
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.
That's done above.
this fails to build on OpenBSD 6.6. with LibreSSL 3.0.2:
|
I'll fix when I can. |
hi @neheb when are you planning to update the PR ? |
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Maybe now? |
Signed-off-by: Rosen Penev rosenp@gmail.com