summaryrefslogtreecommitdiffstats
path: root/source/libads/sasl.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-09-04 19:47:48 +0000
committerVolker Lendecke <vlendec@samba.org>2006-09-04 19:47:48 +0000
commit4d40f5e579e658abdb7b14de9e86fe80436603b8 (patch)
treeaba0227b9de9bc138e23b779f306d2f74a841ba0 /source/libads/sasl.c
parentba30e7a6628bac938b367c874b2406d71f2898f9 (diff)
downloadsamba-4d40f5e579e658abdb7b14de9e86fe80436603b8.tar.gz
samba-4d40f5e579e658abdb7b14de9e86fe80436603b8.tar.xz
samba-4d40f5e579e658abdb7b14de9e86fe80436603b8.zip
r18047: More C++ stuff
Diffstat (limited to 'source/libads/sasl.c')
-rw-r--r--source/libads/sasl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/libads/sasl.c b/source/libads/sasl.c
index fe31ef94bb6..c3f496938ac 100644
--- a/source/libads/sasl.c
+++ b/source/libads/sasl.c
@@ -348,7 +348,7 @@ static ADS_STATUS ads_sasl_gssapi_bind(ADS_STRUCT *ads)
goto failed;
}
- cred.bv_val = output_token.value;
+ cred.bv_val = (char *)output_token.value;
cred.bv_len = output_token.length;
rc = ldap_sasl_bind_s(ads->ld, NULL, "GSSAPI", &cred, NULL, NULL,
@@ -397,7 +397,7 @@ static ADS_STATUS ads_sasl_gssapi_bind(ADS_STRUCT *ads)
gss_release_buffer(&minor_status, &output_token);
output_token.value = SMB_MALLOC(strlen(ads->config.bind_path) + 8);
- p = output_token.value;
+ p = (uint8 *)output_token.value;
*p++ = 1; /* no sign & seal selection */
/* choose the same size as the server gave us */
@@ -419,7 +419,7 @@ static ADS_STATUS ads_sasl_gssapi_bind(ADS_STRUCT *ads)
free(output_token.value);
- cred.bv_val = input_token.value;
+ cred.bv_val = (char *)input_token.value;
cred.bv_len = input_token.length;
rc = ldap_sasl_bind_s(ads->ld, NULL, "GSSAPI", &cred, NULL, NULL,