Skip to content

Fixes and tests for async and crypto callbacks#9784

Open
dgarske wants to merge 3 commits intowolfSSL:masterfrom
dgarske:async_cryptocb
Open

Fixes and tests for async and crypto callbacks#9784
dgarske wants to merge 3 commits intowolfSSL:masterfrom
dgarske:async_cryptocb

Conversation

@dgarske
Copy link
Contributor

@dgarske dgarske commented Feb 16, 2026

Description

Fixes and tests for async and crypto callbacks

Fixes ZD 21071

Testing

How did you test?

Checklist

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

@dgarske dgarske self-assigned this Feb 16, 2026
@padelsbach
Copy link
Contributor

This appears to update only the examples and the workflow. How does this solve the ZD ticket @dgarske ?

@dgarske
Copy link
Contributor Author

dgarske commented Feb 17, 2026

This appears to update only the examples and the workflow. How does this solve the ZD ticket @dgarske ?

Thanks for your interest in my work @padelsbach ... it doesn't solve it yet. I'm still working with the customer.

Copilot AI review requested due to automatic review settings February 27, 2026 22:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves async + crypto-callback behavior and strengthens the async examples/CI coverage for both software async and crypto-callback simulated pending flows.

Changes:

  • Fix/clarify async pending handling for crypto/PK callbacks and clear stale async device state after popping events.
  • Update async examples to support ASYNC_MODE (sw vs cryptocb), including registration of crypto callbacks and updated docs.
  • Extend GitHub Actions to build/run async examples in both modes.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
wolfcrypt/src/cryptocb.c Fix %p logging by casting ctx pointers to void*.
wolfcrypt/src/async.c Document callback-driven pending/retry behavior in the polling loop.
src/internal.c Clear stale async event state after event removal to enable clean retries.
examples/async/user_settings.h Adjust example settings and document mutually exclusive async modes.
examples/async/async_tls.c Update include flow for user settings; narrow simulated pending operations in callback.
examples/async/async_server.c Register/unregister crypto callback device and improve error logging.
examples/async/async_client.c Register/unregister crypto callback device and improve error logging.
examples/async/README.md Document build modes and how to run async examples.
examples/async/Makefile Add ASYNC_MODE switch controlling WOLFSSL_ASYNC_CRYPT_SW vs WOLF_CRYPTO_CB.
.github/workflows/async-examples.yml Build/run CI matrix for both async modes and adjust pending-count validation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dgarske dgarske assigned wolfSSL-Bot and unassigned dgarske Mar 2, 2026
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.

4 participants