Skip to content

Fix wolfSSL_set_verify_result to use correct value#6847

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
embhorn:zd16767
Oct 6, 2023
Merged

Fix wolfSSL_set_verify_result to use correct value#6847
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
embhorn:zd16767

Conversation

@embhorn
Copy link
Copy Markdown
Member

@embhorn embhorn commented Oct 6, 2023

Description

Currently, these two functions are not complimentary:

  • wolfSSL_get_verify_result() returns the value of ssl->peerVerifyRet
  • wolfSSL_set_verify_result() sets the value of ssl->verifyCallbackResult
    (verifyCallbackResult isn't referenced anywhere else in wolfSSL)

FIX: these two functions should read/write the same location

Fixes zd16767

Testing

Customer confirmed.

Checklist

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

JacobBarthelmeh
JacobBarthelmeh previously approved these changes Oct 6, 2023
@JacobBarthelmeh
Copy link
Copy Markdown
Contributor

Please add a simple test case, this could be a 'set' followed right after by a 'get' call and compare.

JacobBarthelmeh
JacobBarthelmeh previously approved these changes Oct 6, 2023
@embhorn
Copy link
Copy Markdown
Member Author

embhorn commented Oct 6, 2023

Retest this please Jenkins

@embhorn
Copy link
Copy Markdown
Member Author

embhorn commented Oct 6, 2023

retest this please

@JacobBarthelmeh JacobBarthelmeh merged commit 5cb80ea into wolfSSL:master Oct 6, 2023
@embhorn embhorn deleted the zd16767 branch April 24, 2026 21:32
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.

2 participants