Skip to content

Commit

Permalink
Fix the case where 0RTT is rejected
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Oct 16, 2019
1 parent 90ccde5 commit 0685fe7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ssl/tls13_enc.c
Expand Up @@ -591,10 +591,13 @@ static int quic_change_cipher_state(SSL *s, int which)
level = ssl_encryption_application;
}

if (s->server)
s->quic_read_level = level;
else
s->quic_write_level = level;
if (level != ssl_encryption_early_data) {
if (s->server)
s->quic_read_level = level;
else {
s->quic_write_level = level;
}
}
}

if (((which & SSL3_CC_CLIENT) && (which & SSL3_CC_WRITE))
Expand Down

0 comments on commit 0685fe7

Please sign in to comment.