Skip to content

Fix wolfssl_asn1_time_to_tm setting unexpected fields in tm struct.#6403

Merged
JacobBarthelmeh merged 2 commits intowolfSSL:masterfrom
kareem-wolfssl:gh6387
May 12, 2023
Merged

Fix wolfssl_asn1_time_to_tm setting unexpected fields in tm struct.#6403
JacobBarthelmeh merged 2 commits intowolfSSL:masterfrom
kareem-wolfssl:gh6387

Conversation

@kareem-wolfssl
Copy link
Copy Markdown
Contributor

Description

Fixes #6387

Testing

Tested and confirmed using provided reproducer.

Checklist

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

dgarske
dgarske previously approved these changes May 12, 2023
Copy link
Copy Markdown
Contributor

@JacobBarthelmeh JacobBarthelmeh left a comment

Choose a reason for hiding this comment

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

Needs a test case added to tests/api.c

@kareem-wolfssl
Copy link
Copy Markdown
Contributor Author

Test added. Unfortunately we can't test for tm_gmtoff as this is not guaranteed to be part of struct tm per POSIX, and there is no preprocessor macro I could find that would gate it.

@JacobBarthelmeh JacobBarthelmeh merged commit c17cff7 into wolfSSL:master May 12, 2023
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.

[Bug]: ASN1_TIME_to_tm issues with localtime

3 participants