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

Fixes and cleanup for handling of sig/algo #1231

Merged
merged 4 commits into from Nov 14, 2017

Conversation

dgarske
Copy link
Contributor

@dgarske dgarske commented Nov 13, 2017

  • Fix to make sure provided sigalgo list doesn't overflow the buffer.
  • Added new overridable define WOLFSSL_MAX_SIGALGO to allow support for more than then default 16 sig/algo pairs (32-bytes).

src/tls.c Outdated
suites->hashSigAlgoSz = len;
if (suites->hashSigAlgoSz > WOLFSSL_MAX_SIGALGO)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Add WOLFSSL_MSG here to help with debug.

src/internal.c Outdated
return BUFFER_ERROR;

clSuites.hashSigAlgoSz = hashSigAlgoSz;
if (clSuites.hashSigAlgoSz > WOLFSSL_MAX_SIGALGO)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Add WOLFSSL_MSG here to help with debug.

@dgarske dgarske assigned dgarske and unassigned toddouska Nov 14, 2017
@dgarske dgarske assigned toddouska and unassigned dgarske Nov 14, 2017
@toddouska toddouska merged commit cc65429 into wolfSSL:master Nov 14, 2017
@dgarske dgarske deleted the fix_max_sigalgo branch November 14, 2017 21:57
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.

None yet

2 participants