Lines Matching defs:in
11 * apply to all code found in this distribution, be it the RC4, RSA,
16 * Copyright remains Eric Young's, and as such any Copyright notices in
18 * If this package is used in a product, Eric Young should be given attribution
20 * This can be in the form of a textual message at program startup or
21 * in documentation (online or textual) provided with the package.
23 * Redistribution and use in source and binary forms, with or without
28 * 2. Redistributions in binary form must reproduce the above copyright
29 * notice, this list of conditions and the following disclaimer in the
100 int obuf_len; /* how many bytes are in it */
154 static int linebuffer_write(BIO *b, const char *in, int inl)
159 if ((in == NULL) || (inl <= 0))
170 for (p = in; p < in + inl && *p != '\n'; p++) ;
178 * If a NL was found and we already have text in the save buffer,
181 while ((foundnl || p - in > ctx->obuf_size - ctx->obuf_len)
186 if (p - in > 0) {
187 if (i >= p - in) {
188 memcpy(&(ctx->obuf[ctx->obuf_len]), in, p - in);
189 ctx->obuf_len += p - in;
190 inl -= p - in;
191 num += p - in;
192 in = p;
194 memcpy(&(ctx->obuf[ctx->obuf_len]), in, i);
197 in += i;
229 if ((foundnl || p - in > ctx->obuf_size) && p - in > 0) {
233 i = BIO_write(b->next_bio, in, p - in);
248 in += i;
259 memcpy(&(ctx->obuf[ctx->obuf_len]), in, inl);