Lines Matching defs:rbio
192 static int send_hello_verify(BIO *rbio)
215 BIO_write(rbio, hello_verify, sizeof(hello_verify));
220 static int send_server_hello(BIO *rbio)
264 BIO_write(rbio, server_hello, sizeof(server_hello));
265 BIO_write(rbio, change_cipher_spec, sizeof(change_cipher_spec));
271 static int send_record(BIO *rbio, unsigned char type, uint64_t seqnr,
330 BIO_write(rbio, &type, 1);
331 BIO_write(rbio, ver, 2);
332 BIO_write(rbio, epoch, 2);
333 BIO_write(rbio, seq, 6);
336 BIO_write(rbio, lenbytes, 2);
338 BIO_write(rbio, iv, sizeof(iv));
339 BIO_write(rbio, enc, len);
345 static int send_finished(SSL *s, BIO *rbio)
373 return send_record(rbio, SSL3_RT_HANDSHAKE, 0,
449 BIO *rbio = NULL;
487 rbio = BIO_new(BIO_s_mem());
490 if (!TEST_ptr(rbio)
494 SSL_set_bio(con, rbio, wbio);
496 if (!TEST_true(BIO_up_ref(rbio))) {
501 rbio = wbio = NULL;
517 || !TEST_true(send_hello_verify(rbio)))
524 || !TEST_true(send_server_hello(rbio)))
530 || !TEST_true(send_finished(con, rbio)))
546 if (!TEST_true(send_record(rbio, SSL3_RT_APPLICATION_DATA, tests[i].seq,
573 BIO_free(rbio);