summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-04-06 14:36:21 +1000
committerAndrew Tridgell <tridge@samba.org>2011-04-06 08:12:19 +0200
commit49ab2df28a9399fef8d37677404304ac88115b45 (patch)
tree29ba5f83e3088272f7c9a8be910adcbacb7246c7 /source4
parent5adf85e6afa949f8e636327bb3446aa4f41948a7 (diff)
downloadsamba-49ab2df28a9399fef8d37677404304ac88115b45.tar.gz
samba-49ab2df28a9399fef8d37677404304ac88115b45.tar.bz2
samba-49ab2df28a9399fef8d37677404304ac88115b45.zip
lib/crypto: rename the SHA256_ functions to samba_SHA256_
this prevents a symbol duplication with the openssl library, which may be linked in via a secondary library dependency Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/utils/oLschema2ldif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/utils/oLschema2ldif.c b/source4/utils/oLschema2ldif.c
index 29ed3bd38e..ae69db19bc 100644
--- a/source4/utils/oLschema2ldif.c
+++ b/source4/utils/oLschema2ldif.c
@@ -392,9 +392,9 @@ static struct ldb_message *process_entry(TALLOC_CTX *mem_ctx, const char *entry)
MSG_ADD_STRING("governsID", s);
}
- SHA256_Init(&sha256_context);
- SHA256_Update(&sha256_context, (uint8_t*)s, strlen(s));
- SHA256_Final(digest, &sha256_context);
+ samba_SHA256_Init(&sha256_context);
+ samba_SHA256_Update(&sha256_context, (uint8_t*)s, strlen(s));
+ samba_SHA256_Final(digest, &sha256_context);
memcpy(&guid, digest, sizeof(struct GUID));