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

srutils: change names colliding with libcrypto #513

Merged
merged 1 commit into from Feb 19, 2016

Conversation

camilleoudot
Copy link
Contributor

Kamailio's srutils SHA functions have names that collide with OpenSSL's libcrypto SHA functions.
In practice, OpenSSL fails to validate a server cert if srutils is loaded before libcrypto, because their SHA functions are not 100% equivalent.

On my Debian, http_async_client was unable to issue any HTTPS request unless server certificate verification was disabled.

This patch solves the issue by renaming the SHA functions in srutils to non-colliding names. I think this has no side effect because they are only used internally.

@miconda
Copy link
Member

miconda commented Feb 18, 2016

Thanks, it can be merged.

camilleoudot added a commit that referenced this pull request Feb 19, 2016
srutils: change names colliding with libcrypto
@camilleoudot camilleoudot merged commit 546944d into master Feb 19, 2016
@camilleoudot camilleoudot deleted the co/crypto_name_collision branch February 19, 2016 09:17
@oej
Copy link
Member

oej commented Feb 19, 2016

Should this be back ported?

@camilleoudot
Copy link
Contributor Author

You're right, the bug should occur every time libsrutils.so is loaded before libcrypto.so and OpenSSL is performing a SHA hash, so it's not specific to the new http modules.
I'll backport it.

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.

None yet

3 participants