Lines Matching defs:rbio
195 static int send_hello_verify(BIO *rbio)
218 BIO_write(rbio, hello_verify, sizeof(hello_verify));
223 static int send_server_hello(BIO *rbio)
267 BIO_write(rbio, server_hello, sizeof(server_hello));
268 BIO_write(rbio, change_cipher_spec, sizeof(change_cipher_spec));
274 static int send_record(BIO *rbio, unsigned char type, uint64_t seqnr,
342 BIO_write(rbio, &type, 1);
343 BIO_write(rbio, ver, 2);
344 BIO_write(rbio, epoch, 2);
345 BIO_write(rbio, seq, 6);
348 BIO_write(rbio, lenbytes, 2);
350 BIO_write(rbio, iv, sizeof(iv));
351 BIO_write(rbio, enc, len);
361 static int send_finished(SSL *s, BIO *rbio)
389 return send_record(rbio, SSL3_RT_HANDSHAKE, 0,
468 BIO *rbio = NULL;
507 rbio = BIO_new(BIO_s_mem());
510 if (!TEST_ptr(rbio)
514 SSL_set_bio(con, rbio, wbio);
516 if (!TEST_true(BIO_up_ref(rbio))) {
521 rbio = wbio = NULL;
537 || !TEST_true(send_hello_verify(rbio)))
544 || !TEST_true(send_server_hello(rbio)))
550 || !TEST_true(send_finished(con, rbio)))
566 if (!TEST_true(send_record(rbio, SSL3_RT_APPLICATION_DATA, tests[i].seq,
594 BIO_free(rbio);