summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-09-08 01:16:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:54 -0500
commita22780bd4c1ebf69258594105bee479fd1c1cf79 (patch)
tree8f8ba826e6eb7e73ec30a66e329420fadb4ad418 /source4
parent704327044d6f54129cef4706b572f1f4dc3ad36f (diff)
downloadsamba-a22780bd4c1ebf69258594105bee479fd1c1cf79.tar.gz
samba-a22780bd4c1ebf69258594105bee479fd1c1cf79.tar.bz2
samba-a22780bd4c1ebf69258594105bee479fd1c1cf79.zip
r18242: The cyrus-sasl encode/decode routines process the entire input.
Andrew Bartlett (This used to be commit 32d8a23d5499ef3d913240b5693b54eb2e78cd7d)
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/gensec/cyrus_sasl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/auth/gensec/cyrus_sasl.c b/source4/auth/gensec/cyrus_sasl.c
index e60de945ca..2cb078ff36 100644
--- a/source4/auth/gensec/cyrus_sasl.c
+++ b/source4/auth/gensec/cyrus_sasl.c
@@ -240,6 +240,7 @@ static NTSTATUS gensec_sasl_unwrap_packets(struct gensec_security *gensec_securi
in->data, in->length, &out_data, &out_len);
if (sasl_ret == SASL_OK) {
*out = data_blob_talloc(out_mem_ctx, out_data, out_len);
+ *len_processed = in->length;
} else {
DEBUG(1, ("GENSEC SASL: unwrap failed: %s\n", sasl_errdetail(gensec_sasl_state->conn)));
}
@@ -261,6 +262,7 @@ static NTSTATUS gensec_sasl_wrap_packets(struct gensec_security *gensec_security
in->data, in->length, &out_data, &out_len);
if (sasl_ret == SASL_OK) {
*out = data_blob_talloc(out_mem_ctx, out_data, out_len);
+ *len_processed = in->length;
} else {
DEBUG(1, ("GENSEC SASL: wrap failed: %s\n", sasl_errdetail(gensec_sasl_state->conn)));
}