build: Build with system md5.h on OpenIndiana
authorAndrew Bartlett <abartlet@samba.org>
Sat, 8 Jun 2013 05:48:40 +0000 (15:48 +1000)
committerJeremy Allison <jra@samba.org>
Wed, 19 Jun 2013 19:32:36 +0000 (21:32 +0200)
commitfc13489c91e790ff8952aff1e7db1e6189894e30
treeb36ce2a6e54a0141fecdc2b0561050259bb19c2c
parent5c4772ec1d562a4547391e1dd4956c43e3d635a7
build: Build with system md5.h on OpenIndiana

This changes (again...) our system md5 detection to cope with how
OpenIndiana does md5.  I'm becoming increasingly convinced this isn't
worth our while (we should have just done samba_md5...), but for now
this change seems to work on FreeBSD, OpenIndiana and Linux with
libbsd.

This needs us to rename struct MD5Context -> MD5_CTX, but we provide a
config.h define to rename the type bad if MD5_CTX does not exist (it does
however exist in the md5.h from libbsd).

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jun 19 21:32:36 CEST 2013 on sn-devel-104
26 files changed:
auth/credentials/credentials_ntlm.c
auth/ntlmssp/ntlmssp_server.c
auth/ntlmssp/ntlmssp_sign.c
lib/crypto/hmacmd5.c
lib/crypto/hmacmd5.h
lib/crypto/md5.c
lib/crypto/md5test.c
lib/crypto/wscript_build
lib/crypto/wscript_configure
libcli/auth/credentials.c
libcli/auth/schannel_sign.c
libcli/auth/smbencrypt.c
libcli/drsuapi/repl_decrypt.c
libcli/smb/smb_signing.c
source3/libsmb/ntlmssp.c
source3/modules/vfs_streams_xattr.c
source3/rpc_client/init_samr.c
source4/dsdb/samdb/ldb_modules/password_hash.c
source4/libcli/raw/smb_signing.c
source4/libnet/libnet_passwd.c
source4/ntp_signd/ntp_signd.c
source4/rpc_server/samr/samr_password.c
source4/torture/ntp/ntp_signd.c
source4/torture/rpc/samba3rpc.c
source4/torture/rpc/samlogon.c
source4/torture/rpc/samr.c