Lines Matching refs:local
6261 SSL *local = NULL, *peer = NULL; in test_key_update_peer_in_read() local
6274 local = tst == 0 ? clientssl : serverssl; in test_key_update_peer_in_read()
6280 SSL_set_bio(local, lbio, lbio); in test_key_update_peer_in_read()
6289 if (!TEST_true(SSL_key_update(local, SSL_KEY_UPDATE_REQUESTED)) in test_key_update_peer_in_read()
6290 || !TEST_int_eq(SSL_write(local, lwbuf, sizeof(lwbuf)), -1) in test_key_update_peer_in_read()
6291 || !TEST_int_eq(SSL_get_error(local, -1), SSL_ERROR_WANT_WRITE)) in test_key_update_peer_in_read()
6310 if (!TEST_int_eq(SSL_write(local, lwbuf, sizeof(lwbuf)), sizeof(lwbuf)) in test_key_update_peer_in_read()
6315 if (!TEST_int_eq(SSL_write(local, mess, strlen(mess)), strlen(mess)) in test_key_update_peer_in_read()
6345 SSL *local = NULL, *peer = NULL; in test_key_update_local_in_write() local
6359 local = tst == 0 ? clientssl : serverssl; in test_key_update_local_in_write()
6363 tmp = SSL_get_wbio(local); in test_key_update_local_in_write()
6368 SSL_set0_wbio(local, bretry); in test_key_update_local_in_write()
6372 if (!TEST_int_eq(SSL_write(local, mess, strlen(mess)), -1) in test_key_update_local_in_write()
6373 || !TEST_int_eq(SSL_get_error(local, -1), SSL_ERROR_WANT_WRITE)) in test_key_update_local_in_write()
6377 SSL_set0_wbio(local, tmp); in test_key_update_local_in_write()
6381 if (!TEST_false(SSL_key_update(local, SSL_KEY_UPDATE_REQUESTED)) in test_key_update_local_in_write()
6387 if (!TEST_int_eq(SSL_write(local, mess, strlen(mess)), strlen(mess))) in test_key_update_local_in_write()
6391 if (!TEST_true(SSL_key_update(local, SSL_KEY_UPDATE_REQUESTED)) in test_key_update_local_in_write()
6392 || !TEST_int_eq(SSL_do_handshake(local), 1)) in test_key_update_local_in_write()
6399 if (!TEST_int_eq(SSL_write(local, mess, strlen(mess)), strlen(mess)) in test_key_update_local_in_write()
6405 || !TEST_int_eq(SSL_read(local, buf, sizeof(buf)), strlen(mess))) in test_key_update_local_in_write()
6435 SSL *local = NULL, *peer = NULL; in test_key_update_local_in_read() local
6448 local = tst == 0 ? clientssl : serverssl; in test_key_update_local_in_read()
6454 SSL_set_bio(local, lbio, lbio); in test_key_update_local_in_read()
6463 if (!TEST_int_eq(SSL_read(local, lrbuf, sizeof(lrbuf)), -1) in test_key_update_local_in_read()
6464 || !TEST_int_eq(SSL_get_error(local, -1), SSL_ERROR_WANT_READ)) in test_key_update_local_in_read()
6468 if (!TEST_true(SSL_key_update(local, SSL_KEY_UPDATE_REQUESTED)) in test_key_update_local_in_read()
6469 || !TEST_int_eq(SSL_do_handshake(local), 1)) in test_key_update_local_in_read()
6477 || !TEST_int_eq(SSL_read(local, lrbuf, sizeof(lrbuf)), sizeof(lrbuf))) in test_key_update_local_in_read()
6484 if (!TEST_int_eq(SSL_write(local, mess, strlen(mess)), strlen(mess)) in test_key_update_local_in_read()
6490 || !TEST_int_eq(SSL_read(local, lrbuf, sizeof(lrbuf)), strlen(mess))) in test_key_update_local_in_read()