Lines Matching refs:b

15 static int prefix_write(BIO *b, const char *out, size_t outl,
17 static int prefix_read(BIO *b, char *buf, size_t size, size_t *numread);
18 static int prefix_puts(BIO *b, const char *str);
19 static int prefix_gets(BIO *b, char *str, int size);
20 static long prefix_ctrl(BIO *b, int cmd, long arg1, void *arg2);
21 static int prefix_create(BIO *b);
22 static int prefix_destroy(BIO *b);
23 static long prefix_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp);
52 static int prefix_create(BIO *b) in prefix_create() argument
62 BIO_set_data(b, ctx); in prefix_create()
63 BIO_set_init(b, 1); in prefix_create()
67 static int prefix_destroy(BIO *b) in prefix_destroy() argument
69 PREFIX_CTX *ctx = BIO_get_data(b); in prefix_destroy()
76 static int prefix_read(BIO *b, char *in, size_t size, size_t *numread) in prefix_read() argument
78 return BIO_read_ex(BIO_next(b), in, size, numread); in prefix_read()
81 static int prefix_write(BIO *b, const char *out, size_t outl, in prefix_write() argument
84 PREFIX_CTX *ctx = BIO_get_data(b); in prefix_write()
101 return BIO_write_ex(BIO_next(b), out, outl, numwritten); in prefix_write()
118 && !BIO_write_ex(BIO_next(b), ctx->prefix, strlen(ctx->prefix), in prefix_write()
121 BIO_printf(BIO_next(b), "%*s", ctx->indent, ""); in prefix_write()
135 if (!BIO_write_ex(BIO_next(b), out, i, &num)) in prefix_write()
151 static long prefix_ctrl(BIO *b, int cmd, long num, void *ptr) in prefix_ctrl() argument
156 if (b == NULL || (ctx = BIO_get_data(b)) == NULL) in prefix_ctrl()
187 if (BIO_next(b) != NULL) in prefix_ctrl()
188 ret = BIO_ctrl(BIO_next(b), cmd, num, ptr); in prefix_ctrl()
194 static long prefix_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp) in prefix_callback_ctrl() argument
196 return BIO_callback_ctrl(BIO_next(b), cmd, fp); in prefix_callback_ctrl()
199 static int prefix_gets(BIO *b, char *buf, int size) in prefix_gets() argument
201 return BIO_gets(BIO_next(b), buf, size); in prefix_gets()
204 static int prefix_puts(BIO *b, const char *str) in prefix_puts() argument
206 return BIO_write(b, str, strlen(str)); in prefix_puts()