Skip to content

Detect unknown key format on ProcessBufferTryDecode()#8630

Merged
JacobBarthelmeh merged 2 commits intowolfSSL:masterfrom
kojiws:kojiws/more_strict_key_format_check
Apr 3, 2025
Merged

Detect unknown key format on ProcessBufferTryDecode()#8630
JacobBarthelmeh merged 2 commits intowolfSSL:masterfrom
kojiws:kojiws/more_strict_key_format_check

Conversation

@kojiws
Copy link
Copy Markdown
Contributor

@kojiws kojiws commented Apr 3, 2025

Description

Currently, the ProcessBufferTryDecode(..., int* keyFormat, ...) returns zero (=success) even though the *keyFormat is unknown value.
This PR will update the function to return a error code when the *keyFormat is unknown.

Testing

./configure && make test

Checklist

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

@kojiws kojiws force-pushed the kojiws/more_strict_key_format_check branch from d1b9fe7 to 179c47c Compare April 3, 2025 10:11
@kojiws kojiws force-pushed the kojiws/more_strict_key_format_check branch from 179c47c to 71ebad1 Compare April 3, 2025 13:22
@kojiws kojiws changed the title Detect Unknown Key Format on ProcessBufferTryDecode() Detect unknown key format on ProcessBufferTryDecode() Apr 3, 2025
@kojiws kojiws marked this pull request as ready for review April 3, 2025 13:34
@JacobBarthelmeh JacobBarthelmeh merged commit 50ef56a into wolfSSL:master Apr 3, 2025
185 checks passed
@kojiws kojiws deleted the kojiws/more_strict_key_format_check branch April 3, 2025 23:20
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.

3 participants