Lines Matching refs:early

493     /* Terminate old session and resume with early data. */
510 /* Here writing 0 length early data is enough. */
522 /* In addition to the previous entries, expect early secrets. */
3382 * Helper method to setup objects for early data test. Caller frees objects on
3491 /* Write and read some early data */
3514 /* Even after reading normal data, client should be able write early data */
3520 /* Server should still be able read early data after writing data */
3536 * If client writes normal data it should mean writing early data is no
3563 /* Server should be told that there is no more early data */
3571 * Server has not finished init yet, so should still be able to write early
3590 /* Client and server should not be able to write/read early data now */
3638 /* Write and read some early data */
3652 /* Client and server should not be able to write/read early data now */
3701 * usecb == 0: Don't use a custom early data callback
3702 * usecb == 1: Use a custom early data callback and reject the early data
3703 * usecb == 2: Use a custom early data callback and accept the early data
3750 * The server is configured to accept early data. Create a connection to
3768 /* Write and read some early data */
3780 * early data
3786 /* In this case the callback decides to accept the early data */
3793 * end of early data and complete its half of the handshake
3847 * Helper function to test that a server attempting to read early data can
3848 * handle a connection from a client where the early data should be skipped.
3916 /* Write some early data */
3922 /* Server should reject the early data */
3996 * Should be able to send normal data despite rejection of early data. The
4008 * Failure to decrypt early data records should not leave spurious errors
4029 * Test that a server attempting to read early data can handle a connection
4030 * from a client where the early data is not acceptable.
4040 * Test that a server attempting to read early data can handle a connection
4051 * Test that a server attempting to read early data can handle a connection
4063 * Test that a server attempting to read early data will abort if it tries to
4074 * Test that a server attempting to read early data can handle a connection
4096 /* Server should detect that early data has not been sent */
4196 /* Set inconsistent SNI (early client detection) */
4204 /* Set inconsistent ALPN (early client detection) */
4443 * Test that a server that doesn't try to read early data can handle a
4460 /* Write some early data */
4466 * Server should skip over early data and then block waiting for client to
4504 * Test that a server attempting to read early data can handle a connection
4529 * finish and detect that early data has not been sent
6374 /* Here writing 0 length early data is enough. */
7466 /* Write and read some early data and then complete the connection */
8825 SSL_SESSION *early = NULL;
8834 || !TEST_ptr(early = SSL_SESSION_new())
8840 early->session_id_length = SSL3_SSL_SESSION_ID_LENGTH;
8841 memset(early->session_id, 1, SSL3_SSL_SESSION_ID_LENGTH);
8847 if (!TEST_int_eq(SSL_CTX_add_session(ctx, early), 1)
8853 if (!TEST_ptr(early->prev)
8858 if (!TEST_int_ne(SSL_SESSION_set_time(early, now - 10), 0)
8863 if (!TEST_int_ne(SSL_SESSION_set_timeout(early, TIMEOUT), 0)
8869 if (!TEST_ptr(early->prev)
8876 || !TEST_ptr_eq(middle->next, early)
8877 || !TEST_ptr_eq(early->prev, middle)
8881 /* This should remove "early" */
8883 if (!TEST_ptr_null(early->prev)
8890 if (!TEST_ptr_null(early->prev)
8897 if (!TEST_ptr_null(early->prev)
8903 if (!TEST_int_eq(SSL_CTX_add_session(ctx, early), 1)
8909 if (!TEST_ptr(early->prev)
8916 if (!TEST_ptr_null(early->prev)
8926 if (!TEST_int_ne(SSL_SESSION_set_time(early, now), 0)
8927 || !TEST_int_eq(SSL_CTX_add_session(ctx, early), 1)
8928 || !TEST_long_ne(SSL_SESSION_get_time(early), now))
8934 SSL_SESSION_free(early);