Lines Matching refs:linebuf
58 static int strip_eol(char *linebuf, int *plen, int flags);
512 char linebuf[MAX_SMLEN]; in SMIME_crlf_copy() local
522 while ((len = BIO_read(in, linebuf, MAX_SMLEN)) > 0) in SMIME_crlf_copy()
523 BIO_write(out, linebuf, len); in SMIME_crlf_copy()
528 while ((len = BIO_gets(in, linebuf, MAX_SMLEN)) > 0) { in SMIME_crlf_copy()
529 eol = strip_eol(linebuf, &len, flags); in SMIME_crlf_copy()
538 BIO_write(out, linebuf, len); in SMIME_crlf_copy()
593 char linebuf[MAX_SMLEN]; in multi_split() local
608 while ((len = BIO_get_line(bio, linebuf, MAX_SMLEN)) > 0) { in multi_split()
609 state = mime_bound_check(linebuf, len, bound, blen); in multi_split()
621 next_eol = strip_eol(linebuf, &len, flags); in multi_split()
647 BIO_write(bpart, linebuf, len); in multi_split()
668 char linebuf[MAX_SMLEN]; in STACK_OF() local
676 while ((len = BIO_gets(bio, linebuf, MAX_SMLEN)) > 0) { in STACK_OF()
678 if (mhdr && ossl_isspace(linebuf[0])) in STACK_OF()
684 for (p = linebuf, q = linebuf; (c = *p) && (c != '\r') && (c != '\n'); in STACK_OF()
773 if (p == linebuf) in STACK_OF()
985 static int strip_eol(char *linebuf, int *plen, int flags) in strip_eol() argument
993 if (len <= 0 || linebuf[len - 1] != '\n') in strip_eol()
996 if (len <= 1 || linebuf[len - 2] != '\r') in strip_eol()
1006 for (p = linebuf + len - 1; len > 0; len--, p--) { in strip_eol()