Lines Matching refs:bb
86 BIO_BUF_MEM *bb; in BIO_new_mem_buf() local
96 bb = (BIO_BUF_MEM *)ret->ptr; in BIO_new_mem_buf()
97 b = bb->buf; in BIO_new_mem_buf()
102 *bb->readp = *bb->buf; in BIO_new_mem_buf()
111 BIO_BUF_MEM *bb = OPENSSL_zalloc(sizeof(*bb)); in mem_init() local
113 if (bb == NULL) in mem_init()
115 if ((bb->buf = BUF_MEM_new_ex(flags)) == NULL) { in mem_init()
116 OPENSSL_free(bb); in mem_init()
119 if ((bb->readp = OPENSSL_zalloc(sizeof(*bb->readp))) == NULL) { in mem_init()
120 BUF_MEM_free(bb->buf); in mem_init()
121 OPENSSL_free(bb); in mem_init()
124 *bb->readp = *bb->buf; in mem_init()
128 bi->ptr = (char *)bb; in mem_init()
144 BIO_BUF_MEM *bb; in mem_free() local
149 bb = (BIO_BUF_MEM *)a->ptr; in mem_free()
152 OPENSSL_free(bb->readp); in mem_free()
153 OPENSSL_free(bb); in mem_free()
163 BIO_BUF_MEM *bb = (BIO_BUF_MEM *)a->ptr; in mem_buf_free() local
164 BUF_MEM *b = bb->buf; in mem_buf_free()