Skip to content

Fix for OCSP response in non-blocking mode and testing script improvements#3204

Merged
toddouska merged 3 commits intowolfSSL:masterfrom
dgarske:ocsp_nonblock
Sep 1, 2020
Merged

Fix for OCSP response in non-blocking mode and testing script improvements#3204
toddouska merged 3 commits intowolfSSL:masterfrom
dgarske:ocsp_nonblock

Conversation

@dgarske
Copy link
Copy Markdown
Member

@dgarske dgarske commented Aug 7, 2020

  • Fix for handling OCSP response in non-blocking mode.
  • Fix for OCSP test with IPV6 enabled (use -b bind to any on server).
  • Fix to use random port number for the oscp-stapling.test script.
  • Reduce delay times in scripts.

Example: wolfSSL/wolfssl-examples#224
ZD 10417

Comment thread src/wolfio.c Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does LastError() return errno on most systems now which wouldn't match SOCKET_EWOULDBLOCK?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm open to change this, but this is copy/paste from the existing EmbedReceive, EmbedSend, EmbedReceiveFrom and EmbedSendTo.

Comment thread src/wolfio.c Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Don't we usually test against SOCKET_EAGAIN as well?

Comment thread src/wolfio.c Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does requiring the user to turn on nonblocking support make sense? That is, isn't that usually the default in wolfSSL.

…nabled (use `-b` bind to any on server). Fix to use random port number for the `oscp-stapling.test` script. Reduce delay times in scripts.
@dgarske dgarske changed the title Fix for handling OCSP response in non-blocking mode Fix for OCSP response in non-blocking mode and testing script improvements Aug 25, 2020
@dgarske
Copy link
Copy Markdown
Member Author

dgarske commented Aug 27, 2020

retest this please

@dgarske dgarske assigned toddouska and unassigned dgarske Aug 28, 2020
@dgarske dgarske requested a review from kaleb-himes August 28, 2020 21:41
Copy link
Copy Markdown
Contributor

@kaleb-himes kaleb-himes left a comment

Choose a reason for hiding this comment

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

Changes in the script look good, thanks David! Over to Todd.

@toddouska toddouska merged commit 6f56c3c into wolfSSL:master Sep 1, 2020
@dgarske dgarske deleted the ocsp_nonblock branch September 2, 2020 17:15
douzzer added a commit to douzzer/wolfssl that referenced this pull request Sep 23, 2020
TakayukiMatsuo pushed a commit to TakayukiMatsuo/wolfssl that referenced this pull request Feb 18, 2021
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