Skip to content

Commit

Permalink
encrypted_client_hello extension cannot be referred to by ech_outer_e…
Browse files Browse the repository at this point in the history
…xtensions
  • Loading branch information
kazuho committed Nov 29, 2022
1 parent a3cfa2f commit df35659
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/picotls.c
Original file line number Diff line number Diff line change
Expand Up @@ -3737,6 +3737,10 @@ static int rebuild_ch_inner_extensions(ptls_buffer_t *buf, const uint8_t **src,
uint16_t outersize;
if ((ret = ptls_decode16(&reftype, src, end)) != 0)
goto Exit;
if (reftype == PTLS_EXTENSION_TYPE_ENCRYPTED_CLIENT_HELLO) {
ret = PTLS_ALERT_ILLEGAL_PARAMETER;
goto Exit;
}
while (1) {
if (ptls_decode16(&outertype, &outer_ext, outer_ext_end) != 0 ||
ptls_decode16(&outersize, &outer_ext, outer_ext_end) != 0) {
Expand Down

0 comments on commit df35659

Please sign in to comment.