Author: abartlet Date: 2006-09-08 01:16:25 +0000 (Fri, 08 Sep 2006) New Revision: 18242
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18242 Log: The cyrus-sasl encode/decode routines process the entire input. Andrew Bartlett Modified: branches/SAMBA_4_0/source/auth/gensec/cyrus_sasl.c Changeset: Modified: branches/SAMBA_4_0/source/auth/gensec/cyrus_sasl.c =================================================================== --- branches/SAMBA_4_0/source/auth/gensec/cyrus_sasl.c 2006-09-08 01:16:01 UTC (rev 18241) +++ branches/SAMBA_4_0/source/auth/gensec/cyrus_sasl.c 2006-09-08 01:16:25 UTC (rev 18242) @@ -240,6 +240,7 @@ 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 @@ 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))); }