diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-06-08 15:48:40 +1000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-06-19 21:32:36 +0200 |
commit | fc13489c91e790ff8952aff1e7db1e6189894e30 (patch) | |
tree | b36ce2a6e54a0141fecdc2b0561050259bb19c2c /auth/credentials | |
parent | 5c4772ec1d562a4547391e1dd4956c43e3d635a7 (diff) | |
download | samba-fc13489c91e790ff8952aff1e7db1e6189894e30.tar.gz samba-fc13489c91e790ff8952aff1e7db1e6189894e30.tar.xz samba-fc13489c91e790ff8952aff1e7db1e6189894e30.zip |
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
Diffstat (limited to 'auth/credentials')
-rw-r--r-- | auth/credentials/credentials_ntlm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/credentials/credentials_ntlm.c b/auth/credentials/credentials_ntlm.c index 2d6d6f6c55..8f143bf3c0 100644 --- a/auth/credentials/credentials_ntlm.c +++ b/auth/credentials/credentials_ntlm.c @@ -110,7 +110,7 @@ _PUBLIC_ NTSTATUS cli_credentials_get_ntlm_response(struct cli_credentials *cred /* LM Key is incompatible... */ *flags &= ~CLI_CRED_LANMAN_AUTH; } else if (*flags & CLI_CRED_NTLM2) { - struct MD5Context md5_session_nonce_ctx; + MD5_CTX md5_session_nonce_ctx; uint8_t session_nonce[16]; uint8_t session_nonce_hash[16]; uint8_t user_session_key[16]; |