Lines Matching refs:linebuf
58 static int strip_eol(char *linebuf, int *plen, int flags);
519 char linebuf[MAX_SMLEN]; in SMIME_crlf_copy() local
538 while ((len = BIO_read(in, linebuf, MAX_SMLEN)) > 0) in SMIME_crlf_copy()
539 BIO_write(out, linebuf, len); in SMIME_crlf_copy()
544 while ((len = BIO_gets(in, linebuf, MAX_SMLEN)) > 0) { in SMIME_crlf_copy()
545 eol = strip_eol(linebuf, &len, flags); in SMIME_crlf_copy()
554 BIO_write(out, linebuf, len); in SMIME_crlf_copy()
612 char linebuf[MAX_SMLEN]; in multi_split() local
627 while ((len = BIO_get_line(bio, linebuf, MAX_SMLEN)) > 0) { in multi_split()
628 state = mime_bound_check(linebuf, len, bound, blen); in multi_split()
640 next_eol = strip_eol(linebuf, &len, flags); in multi_split()
666 BIO_write(bpart, linebuf, len); in multi_split()
687 char linebuf[MAX_SMLEN]; in STACK_OF() local
695 while ((len = BIO_gets(bio, linebuf, MAX_SMLEN)) > 0) { in STACK_OF()
697 if (mhdr && ossl_isspace(linebuf[0])) in STACK_OF()
703 for (p = linebuf, q = linebuf; (c = *p) && (c != '\r') && (c != '\n'); in STACK_OF()
792 if (p == linebuf) in STACK_OF()
1005 static int strip_eol(char *linebuf, int *plen, int flags) in strip_eol() argument
1013 if (len <= 0 || linebuf[len - 1] != '\n') in strip_eol()
1016 if (len <= 1 || linebuf[len - 2] != '\r') in strip_eol()
1026 for (p = linebuf + len - 1; len > 0; len--, p--) { in strip_eol()