Lines Matching refs:rbio

195 static int send_hello_verify(BIO *rbio)  in send_hello_verify()  argument
218 BIO_write(rbio, hello_verify, sizeof(hello_verify)); in send_hello_verify()
223 static int send_server_hello(BIO *rbio) in send_server_hello() argument
267 BIO_write(rbio, server_hello, sizeof(server_hello)); in send_server_hello()
268 BIO_write(rbio, change_cipher_spec, sizeof(change_cipher_spec)); in send_server_hello()
274 static int send_record(BIO *rbio, unsigned char type, uint64_t seqnr, in send_record() argument
342 BIO_write(rbio, &type, 1); in send_record()
343 BIO_write(rbio, ver, 2); in send_record()
344 BIO_write(rbio, epoch, 2); in send_record()
345 BIO_write(rbio, seq, 6); in send_record()
348 BIO_write(rbio, lenbytes, 2); in send_record()
350 BIO_write(rbio, iv, sizeof(iv)); in send_record()
351 BIO_write(rbio, enc, len); in send_record()
361 static int send_finished(SSL *s, BIO *rbio) in send_finished() argument
393 return send_record(rbio, SSL3_RT_HANDSHAKE, 0, in send_finished()
472 BIO *rbio = NULL; in test_bad_dtls() local
512 rbio = BIO_new(BIO_s_mem()); in test_bad_dtls()
515 if (!TEST_ptr(rbio) in test_bad_dtls()
519 SSL_set_bio(con, rbio, wbio); in test_bad_dtls()
521 if (!TEST_true(BIO_up_ref(rbio))) { in test_bad_dtls()
526 rbio = wbio = NULL; in test_bad_dtls()
542 || !TEST_true(send_hello_verify(rbio))) in test_bad_dtls()
549 || !TEST_true(send_server_hello(rbio))) in test_bad_dtls()
555 || !TEST_true(send_finished(con, rbio))) in test_bad_dtls()
571 if (!TEST_true(send_record(rbio, SSL3_RT_APPLICATION_DATA, tests[i].seq, in test_bad_dtls()
599 BIO_free(rbio); in test_bad_dtls()