* and give the application the opportunity to delay sending the
* session ticket?
*/
- if (s->post_handshake_auth == SSL_PHA_REQUESTED)
- s->post_handshake_auth = SSL_PHA_EXT_RECEIVED;
st->hand_state = TLS_ST_SW_SESSION_TICKET;
+ if (s->post_handshake_auth == SSL_PHA_REQUESTED) {
+ s->post_handshake_auth = SSL_PHA_EXT_RECEIVED;
+ } else if (s->hit && !s->ext.ticket_expected) {
+ /*
+ * If we resumed and we're not going to renew the ticket then we
+ * just finish the handshake at this point.
+ */
+ st->hand_state = TLS_ST_OK;
+ }
return WRITE_TRAN_CONTINUE;
case TLS_ST_SR_KEY_UPDATE: