Home | History | Annotate | Download | only in test

Lines Matching defs:cbio

276     BIO *mem = NULL, *b64 = NULL, *cbio = NULL;
287 || !TEST_ptr(cbio = BIO_new(BIO_f_cipher()))
289 || !TEST_ptr(BIO_push(cbio, b64))
290 || !TEST_int_gt(BIO_get_cipher_ctx(cbio, &ctx), 0)
292 || !TEST_int_gt(BIO_write(cbio, pbuf, sizeof(pbuf) - 1), 0)
293 || !TEST_int_gt(BIO_flush(cbio), 0)
298 BIO_free(cbio);
300 b64 = cbio = NULL;
306 || !TEST_ptr(cbio = BIO_new(BIO_f_cipher()))
308 || !TEST_ptr(BIO_push(cbio, b64))
309 || !TEST_int_gt(BIO_get_cipher_ctx(cbio, &ctx), 0)
314 || !TEST_int_gt((n = BIO_read(cbio, cbuf, sizeof(cbuf))), 0)
315 || !TEST_true(BIO_get_cipher_status(cbio))
317 || (!TEST_int_gt(BIO_flush(cbio), 0) + !TEST_true(BIO_get_cipher_status(cbio)))
324 BIO_free(cbio);