Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility issues with other TLS libraries #6408

Closed
SmallTown123 opened this issue May 13, 2023 · 6 comments · Fixed by #6415
Closed

Compatibility issues with other TLS libraries #6408

SmallTown123 opened this issue May 13, 2023 · 6 comments · Fixed by #6415
Assignees
Labels

Comments

@SmallTown123
Copy link

Version

5.5.1 and below

Description

I think there are two compatibility issues in the TLS 1.2 implementation:

(1) When processing the SessionID field in the ClientHello message, the wolfssl server side seems to respond normally only to SessionID of length 32 at present.

However, RFC5246 specifies the SessionID length as opaque SessionID<0..32>.

There may be compatibility issues with other TLS library clients.

(2) It seems that wolfssl server has support upper limit 150 for Cipher Suites in ClientHello.

In general, this upper number is sufficient, but is there a potential compatibility issue with this implementation?

For example, a client with an individual TLS implementation library will send all the cipher suites it supports, and the number happens to be greater than 150.

@dgarske
Copy link
Contributor

dgarske commented May 15, 2023

@julek-wolfssl can you look into this report?

@julek-wolfssl
Copy link
Member

Hi @SmallTown123,

thank you for your report.

  1. I agree that a session ID that is shorter than ID_LEN should not result in an error. In this case we should simply ignore the session ID and continue as if it was not present. I will post a pull request that fixes this.
  2. The maximum amount of ciphersuites that wolfSSL is willing to process is governed by the WOLFSSL_MAX_SUITE_SZ compile time definition. By default it is 300 bytes (or 150 ciphersuites) but this can be modified to fit your use case. We feel that 150 ciphersuites covers most use cases but also doesn't use too much memory.

Sincerely
Juliusz

@SmallTown123
Copy link
Author

Ok, I understand. Thank you for your reply! @julek-wolfssl

@julek-wolfssl
Copy link
Member

@SmallTown123 I have opened #6415 which fixes the session ID incompatibility.

@dgarske
Copy link
Contributor

dgarske commented Jun 28, 2023

Hi @SmallTown123 ,

Have you had a chance to try the fixes in PR #6415 to resolve the shorter session ID issue? You feedback would be appreciated.

Thanks,
David Garske, wolfSSL

@julek-wolfssl
Copy link
Member

Hi @SmallTown123,

the PR fixing this has been merged.

Juliusz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants