summaryrefslogtreecommitdiff
path: root/source3/lib/smbldap.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2011-04-04 14:16:44 +0200
committerGünther Deschner <gd@samba.org>2011-04-06 11:53:56 +0200
commitf3b1a68f5f540fa3674c5594ad3ede1568bab6cb (patch)
treecf2987e7a916d3c253047f5e56db50fe6c266fbc /source3/lib/smbldap.c
parent02c6940964f8db0c7e78b9e6d8e4a7a404331285 (diff)
downloadsamba-f3b1a68f5f540fa3674c5594ad3ede1568bab6cb.tar.gz
samba-f3b1a68f5f540fa3674c5594ad3ede1568bab6cb.tar.bz2
samba-f3b1a68f5f540fa3674c5594ad3ede1568bab6cb.zip
s3-smbldap: make octet_strings/DATA_BLOBs const.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/lib/smbldap.c')
-rw-r--r--source3/lib/smbldap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c
index 4c11ced0c2..fe43237464 100644
--- a/source3/lib/smbldap.c
+++ b/source3/lib/smbldap.c
@@ -506,7 +506,7 @@ ATTRIB_MAP_ENTRY sidmap_attr_list[] = {
manage memory used by the array, by each struct, and values
***********************************************************************/
-static void smbldap_set_mod_internal(LDAPMod *** modlist, int modop, const char *attribute, const char *value, DATA_BLOB *blob)
+static void smbldap_set_mod_internal(LDAPMod *** modlist, int modop, const char *attribute, const char *value, const DATA_BLOB *blob)
{
LDAPMod **mods;
int i;
@@ -611,7 +611,7 @@ static void smbldap_set_mod_internal(LDAPMod *** modlist, int modop, const char
smbldap_set_mod_internal(modlist, modop, attribute, value, NULL);
}
- void smbldap_set_mod_blob(LDAPMod *** modlist, int modop, const char *attribute, DATA_BLOB *value)
+ void smbldap_set_mod_blob(LDAPMod *** modlist, int modop, const char *attribute, const DATA_BLOB *value)
{
smbldap_set_mod_internal(modlist, modop | LDAP_MOD_BVALUES, attribute, NULL, value);
}
@@ -625,7 +625,7 @@ static void smbldap_make_mod_internal(LDAP *ldap_struct, LDAPMessage *existing,
LDAPMod ***mods,
const char *attribute, int op,
const char *newval,
- DATA_BLOB *newblob)
+ const DATA_BLOB *newblob)
{
char oldval[2048]; /* current largest allowed value is mungeddial */
bool existed;
@@ -712,7 +712,7 @@ static void smbldap_make_mod_internal(LDAP *ldap_struct, LDAPMessage *existing,
void smbldap_make_mod_blob(LDAP *ldap_struct, LDAPMessage *existing,
LDAPMod ***mods,
- const char *attribute, DATA_BLOB *newblob)
+ const char *attribute, const DATA_BLOB *newblob)
{
smbldap_make_mod_internal(ldap_struct, existing, mods, attribute,
LDAP_MOD_BVALUES, NULL, newblob);