- /* Write data to an output brigade, escaping quotes */
- for(n=0, i=0; n < len, i < 2*len ; n++) {
- if ('"' != data[n]) {
- buf[i++] = data[n];
- } else {
- /* Write the escaped quote character */
- buf[i++] = '\\';
- buf[i++] = '"';
- /* Skip the quote character */
- }
- }
- buf[i] = '\0';
- bkt_out = apr_bucket_heap_create(buf, i, NULL, c->bucket_alloc);
- gss_log(APLOG_MARK, APLOG_DEBUG, 0, r, "gssweb_authenticate_filter: Sending: %s", buf);
+ /* Put the data in a bucket and add it to the the output brigade */
+ bkt_out = apr_bucket_heap_create(buf, enc_len, NULL, c->bucket_alloc);
+ gss_log(APLOG_MARK, APLOG_DEBUG, 0, r, "gssweb_authenticate_filter: Sending %d bytes", enc_len);