Lines Matching refs:bio
16 static void copy_flags(BIO *bio) in copy_flags() argument
19 BIO *next = BIO_next(bio); in copy_flags()
22 BIO_clear_flags(bio, BIO_FLAGS_SHOULD_RETRY | BIO_FLAGS_RWS); in copy_flags()
23 BIO_set_flags(bio, flags); in copy_flags()
26 static int tls_corrupt_read(BIO *bio, char *out, int outl) in tls_corrupt_read() argument
29 BIO *next = BIO_next(bio); in tls_corrupt_read()
32 copy_flags(bio); in tls_corrupt_read()
37 static int tls_corrupt_write(BIO *bio, const char *in, int inl) in tls_corrupt_write() argument
40 BIO *next = BIO_next(bio); in tls_corrupt_write()
53 copy_flags(bio); in tls_corrupt_write()
58 static long tls_corrupt_ctrl(BIO *bio, int cmd, long num, void *ptr) in tls_corrupt_ctrl() argument
61 BIO *next = BIO_next(bio); in tls_corrupt_ctrl()
77 static int tls_corrupt_gets(BIO *bio, char *buf, int size) in tls_corrupt_gets() argument
83 static int tls_corrupt_puts(BIO *bio, const char *str) in tls_corrupt_puts() argument
89 static int tls_corrupt_new(BIO *bio) in tls_corrupt_new() argument
91 BIO_set_init(bio, 1); in tls_corrupt_new()
96 static int tls_corrupt_free(BIO *bio) in tls_corrupt_free() argument
98 BIO_set_init(bio, 0); in tls_corrupt_free()