The Samba-Bugzilla – Bug 11314
Prevent clashes between system and Samba SHA functions
Last modified: 2015-06-08 00:10:05 UTC
Created attachment 11126 [details]
Patch for v4-2-test to prevent SHA function clashes
Samba provides its own set of SHA function, which would replace
libc-provided flavors. This is a problem because while the prototypes
are the same, the context structure are different. As a result,
when connecting to a LDAP/SSL directory, we go through
libldap/libssl/libcrypto and there libcrypto expects to call libc
SHA functions, not Samba's.
The fix in attached patch is to check for SHA function presence
and rename Samba's version to avoid a clash.
This is a backport of d5065ed2f4c6d9f4539297e9794a2b02adec4d12
from samba master branch.