Lines Matching refs:linebuf
58 static int strip_eol(char *linebuf, int *plen, int flags);
517 char linebuf[MAX_SMLEN];
530 while ((len = BIO_read(in, linebuf, MAX_SMLEN)) > 0)
531 BIO_write(out, linebuf, len);
536 while ((len = BIO_gets(in, linebuf, MAX_SMLEN)) > 0) {
537 eol = strip_eol(linebuf, &len, flags);
546 BIO_write(out, linebuf, len);
604 char linebuf[MAX_SMLEN];
619 while ((len = BIO_get_line(bio, linebuf, MAX_SMLEN)) > 0) {
620 state = mime_bound_check(linebuf, len, bound, blen);
631 /* Strip (possibly CR +) LF from linebuf */
632 next_eol = strip_eol(linebuf, &len, flags);
658 BIO_write(bpart, linebuf, len);
679 char linebuf[MAX_SMLEN];
687 while ((len = BIO_gets(bio, linebuf, MAX_SMLEN)) > 0) {
689 if (mhdr && ossl_isspace(linebuf[0]))
695 for (p = linebuf, q = linebuf; (c = *p) && (c != '\r') && (c != '\n');
784 if (p == linebuf)
996 static int strip_eol(char *linebuf, int *plen, int flags)
1004 if (len <= 0 || linebuf[len - 1] != '\n')
1007 if (len <= 1 || linebuf[len - 2] != '\r')
1017 for (p = linebuf + len - 1; len > 0; len--, p--) {