Lines Matching defs:local

6584     SSL *local = NULL, *peer = NULL;
6597 local = tst == 0 ? clientssl : serverssl;
6603 SSL_set_bio(local, lbio, lbio);
6607 * we first write keyupdate msg then appdata in local
6608 * write data in local will fail with SSL_ERROR_WANT_WRITE,because
6612 if (!TEST_true(SSL_key_update(local, SSL_KEY_UPDATE_REQUESTED))
6613 || !TEST_int_eq(SSL_write(local, lwbuf, sizeof(lwbuf)), -1)
6614 || !TEST_int_eq(SSL_get_error(local, -1), SSL_ERROR_WANT_WRITE))
6630 * write data in local previously that we will complete
6633 if (!TEST_int_eq(SSL_write(local, lwbuf, sizeof(lwbuf)), sizeof(lwbuf))
6638 if (!TEST_int_eq(SSL_write(local, mess, strlen(mess)), strlen(mess))
6655 * local write data is pending.
6668 SSL *local = NULL, *peer = NULL;
6682 local = tst == 0 ? clientssl : serverssl;
6686 tmp = SSL_get_wbio(local);
6691 SSL_set0_wbio(local, bretry);
6694 /* write data in local will fail with SSL_ERROR_WANT_WRITE */
6695 if (!TEST_int_eq(SSL_write(local, mess, strlen(mess)), -1)
6696 || !TEST_int_eq(SSL_get_error(local, -1), SSL_ERROR_WANT_WRITE))
6700 SSL_set0_wbio(local, tmp);
6703 /* SSL_key_update will fail, because writing in local*/
6704 if (!TEST_false(SSL_key_update(local, SSL_KEY_UPDATE_REQUESTED))
6709 /* write data in local previously that we will complete */
6710 if (!TEST_int_eq(SSL_write(local, mess, strlen(mess)), strlen(mess)))
6714 if (!TEST_true(SSL_key_update(local, SSL_KEY_UPDATE_REQUESTED))
6715 || !TEST_int_eq(SSL_do_handshake(local), 1))
6719 * we write some appdata in local
6722 if (!TEST_int_eq(SSL_write(local, mess, strlen(mess)), strlen(mess))
6728 || !TEST_int_eq(SSL_read(local, buf, sizeof(buf)), strlen(mess)))
6746 * local read data is pending(the msg header had been read 5 bytes).
6758 SSL *local = NULL, *peer = NULL;
6771 local = tst == 0 ? clientssl : serverssl;
6777 SSL_set_bio(local, lbio, lbio);
6785 /* read appdata in local will fail with SSL_ERROR_WANT_READ */
6786 if (!TEST_int_eq(SSL_read(local, lrbuf, sizeof(lrbuf)), -1)
6787 || !TEST_int_eq(SSL_get_error(local, -1), SSL_ERROR_WANT_READ))
6791 if (!TEST_true(SSL_key_update(local, SSL_KEY_UPDATE_REQUESTED))
6792 || !TEST_int_eq(SSL_do_handshake(local), 1))
6797 * read data in local previously that we will complete
6800 || !TEST_int_eq(SSL_read(local, lrbuf, sizeof(lrbuf)), sizeof(lrbuf)))
6804 * write data in local
6807 if (!TEST_int_eq(SSL_write(local, mess, strlen(mess)), strlen(mess))
6813 || !TEST_int_eq(SSL_read(local, lrbuf, sizeof(lrbuf)), strlen(mess)))