• Home
  • Raw
  • Download

Lines Matching refs:rbio

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