diff options
Diffstat (limited to 'src/lib/libcrypto/bio/bf_lbuf.c')
-rw-r--r-- | src/lib/libcrypto/bio/bf_lbuf.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/lib/libcrypto/bio/bf_lbuf.c b/src/lib/libcrypto/bio/bf_lbuf.c index e233cbc92c..7ed26ccec7 100644 --- a/src/lib/libcrypto/bio/bf_lbuf.c +++ b/src/lib/libcrypto/bio/bf_lbuf.c | |||
@@ -205,24 +205,15 @@ linebuffer_write(BIO *b, const char *in, int inl) | |||
205 | } | 205 | } |
206 | } | 206 | } |
207 | 207 | ||
208 | #if 0 | ||
209 | BIO_write(b->next_bio, "<*<", 3); | ||
210 | #endif | ||
211 | i = BIO_write(b->next_bio, ctx->obuf, ctx->obuf_len); | 208 | i = BIO_write(b->next_bio, ctx->obuf, ctx->obuf_len); |
212 | if (i <= 0) { | 209 | if (i <= 0) { |
213 | ctx->obuf_len = orig_olen; | 210 | ctx->obuf_len = orig_olen; |
214 | BIO_copy_next_retry(b); | 211 | BIO_copy_next_retry(b); |
215 | #if 0 | ||
216 | BIO_write(b->next_bio, ">*>", 3); | ||
217 | #endif | ||
218 | if (i < 0) | 212 | if (i < 0) |
219 | return ((num > 0) ? num : i); | 213 | return ((num > 0) ? num : i); |
220 | if (i == 0) | 214 | if (i == 0) |
221 | return (num); | 215 | return (num); |
222 | } | 216 | } |
223 | #if 0 | ||
224 | BIO_write(b->next_bio, ">*>", 3); | ||
225 | #endif | ||
226 | if (i < ctx->obuf_len) | 217 | if (i < ctx->obuf_len) |
227 | memmove(ctx->obuf, ctx->obuf + i, | 218 | memmove(ctx->obuf, ctx->obuf + i, |
228 | ctx->obuf_len - i); | 219 | ctx->obuf_len - i); |
@@ -232,23 +223,14 @@ linebuffer_write(BIO *b, const char *in, int inl) | |||
232 | /* Now that the save buffer is emptied, let's write the input | 223 | /* Now that the save buffer is emptied, let's write the input |
233 | buffer if a NL was found and there is anything to write. */ | 224 | buffer if a NL was found and there is anything to write. */ |
234 | if ((foundnl || p - in > ctx->obuf_size) && p - in > 0) { | 225 | if ((foundnl || p - in > ctx->obuf_size) && p - in > 0) { |
235 | #if 0 | ||
236 | BIO_write(b->next_bio, "<*<", 3); | ||
237 | #endif | ||
238 | i = BIO_write(b->next_bio, in, p - in); | 226 | i = BIO_write(b->next_bio, in, p - in); |
239 | if (i <= 0) { | 227 | if (i <= 0) { |
240 | BIO_copy_next_retry(b); | 228 | BIO_copy_next_retry(b); |
241 | #if 0 | ||
242 | BIO_write(b->next_bio, ">*>", 3); | ||
243 | #endif | ||
244 | if (i < 0) | 229 | if (i < 0) |
245 | return ((num > 0) ? num : i); | 230 | return ((num > 0) ? num : i); |
246 | if (i == 0) | 231 | if (i == 0) |
247 | return (num); | 232 | return (num); |
248 | } | 233 | } |
249 | #if 0 | ||
250 | BIO_write(b->next_bio, ">*>", 3); | ||
251 | #endif | ||
252 | num += i; | 234 | num += i; |
253 | in += i; | 235 | in += i; |
254 | inl -= i; | 236 | inl -= i; |
@@ -334,9 +316,6 @@ linebuffer_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
334 | if (ctx->obuf_len > 0) { | 316 | if (ctx->obuf_len > 0) { |
335 | r = BIO_write(b->next_bio, | 317 | r = BIO_write(b->next_bio, |
336 | ctx->obuf, ctx->obuf_len); | 318 | ctx->obuf, ctx->obuf_len); |
337 | #if 0 | ||
338 | fprintf(stderr, "FLUSH %3d -> %3d\n", ctx->obuf_len, r); | ||
339 | #endif | ||
340 | BIO_copy_next_retry(b); | 319 | BIO_copy_next_retry(b); |
341 | if (r <= 0) | 320 | if (r <= 0) |
342 | return ((long)r); | 321 | return ((long)r); |