summaryrefslogtreecommitdiff
path: root/libcli/drsuapi
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-06-08 15:48:40 +1000
committerJeremy Allison <jra@samba.org>2013-06-19 21:32:36 +0200
commitfc13489c91e790ff8952aff1e7db1e6189894e30 (patch)
treeb36ce2a6e54a0141fecdc2b0561050259bb19c2c /libcli/drsuapi
parent5c4772ec1d562a4547391e1dd4956c43e3d635a7 (diff)
downloadsamba-fc13489c91e790ff8952aff1e7db1e6189894e30.tar.gz
samba-fc13489c91e790ff8952aff1e7db1e6189894e30.tar.bz2
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 'libcli/drsuapi')
-rw-r--r--libcli/drsuapi/repl_decrypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcli/drsuapi/repl_decrypt.c b/libcli/drsuapi/repl_decrypt.c
index 6fff2fe5b1..00b8db8abc 100644
--- a/libcli/drsuapi/repl_decrypt.c
+++ b/libcli/drsuapi/repl_decrypt.c
@@ -39,7 +39,7 @@ WERROR drsuapi_decrypt_attribute_value(TALLOC_CTX *mem_ctx,
DATA_BLOB confounder;
DATA_BLOB enc_buffer;
- struct MD5Context md5;
+ MD5_CTX md5;
uint8_t _enc_key[16];
DATA_BLOB enc_key;
@@ -198,7 +198,7 @@ static WERROR drsuapi_encrypt_attribute_value(TALLOC_CTX *mem_ctx,
DATA_BLOB rid_crypt_out = data_blob(NULL, 0);
DATA_BLOB confounder;
- struct MD5Context md5;
+ MD5_CTX md5;
uint8_t _enc_key[16];
DATA_BLOB enc_key;