libsrtp icon indicating copy to clipboard operation
libsrtp copied to clipboard

sha1_update function name conflict

Open ymantijunk opened this issue 13 years ago • 6 comments

This is not an issue, just a suggestion to change the function name "sha1_update()" and "sha1()" in "crypto/hash/sha1.c" as it conflicts with a system library.

Thanks for the wonderful soffware. YM

ymantijunk avatar Jun 10 '13 11:06 ymantijunk

linphone upstream seems to have kinda forked libsrtp because of this? That makes it extremely difficult for packagers to support srtp in the linphone provided ortp library. Not really your problem, but if this can fix it...

hasufell avatar Oct 09 '13 13:10 hasufell

What's the status with this? linphone's fork of libsrtp is difficult to manage from a package management point-of-view. That is, linphone is relying on a version of libsrtp that has no assignable version number. Can this issue be fixed?

cmcqueen avatar Jan 05 '14 02:01 cmcqueen

There is yet one renaming on git://git.linphone.org/srtp.git repo aes_encrypt to srtp_aes_encrypt to avoid conflict with libzrtpcpp.

nuqleo avatar Jan 09 '14 00:01 nuqleo

Is sha1_update() even needed as a part of public API? Maybe it would be easier to make it static, or give it hidden visibility.

mgorny avatar Sep 13 '14 15:09 mgorny

I agree that sha1_update() shouldn't be part of the public API. IMHO, none of the crypto/include header files should be published. Unfortunately since sha1_update() is currently in one of the published header files, removing it creates the risk of breaking downstream applications.

jfigus avatar Sep 22 '14 14:09 jfigus

This is resolved by c270245a94ae9a007202754eb8f7ce9e48f97007 in the 2_0_0_dev branch.

jfigus avatar Nov 04 '14 19:11 jfigus