Skip to content

Cancel resumption if protocol changes#10015

Draft
rlm2002 wants to merge 1 commit intowolfSSL:masterfrom
rlm2002:invalidResumeSession
Draft

Cancel resumption if protocol changes#10015
rlm2002 wants to merge 1 commit intowolfSSL:masterfrom
rlm2002:invalidResumeSession

Conversation

@rlm2002
Copy link
Contributor

@rlm2002 rlm2002 commented Mar 19, 2026

Description

Sets ssl->options.resuming = 0 if downgrade occurs from DoTls13ServerHello(). Necessary when attempted resumption with protocol from original connection is not accepted by server. Allows client to expect a full handshake.

TLSv1.3 resumption downgrading to TLSv1.2 will fail after processing ServerHello as the client will expect incorrect message from server and will fail.

Testing

Modified client-tis-resume.c and server-tis.c example. After first connection using wolfSSLv23_server_method(), server-tis.c will create a new context that uses wolfTLSv1_2_server_method() before receiving resumption ClientHello message.

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@rlm2002 rlm2002 self-assigned this Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant