Skip to content

New build option to allow reuse of the windows crypt provider handle …#8706

Merged
SparkiDev merged 1 commit intowolfSSL:masterfrom
dgarske:win_crypt_rng
May 7, 2025
Merged

New build option to allow reuse of the windows crypt provider handle …#8706
SparkiDev merged 1 commit intowolfSSL:masterfrom
dgarske:win_crypt_rng

Conversation

@dgarske
Copy link
Copy Markdown
Member

@dgarske dgarske commented Apr 23, 2025

Description

New build option to allow reuse of the windows crypt provider handle (WIN_REUSE_CRYPT_HANDLE). Documentation from Windows suggests using the same handle from different threads in the same process is safe when CRYPT_VERIFYCONTEXT is used.

Fixes ZD 19754

Testing

Tested on Windows 10 with Visual Studio 2022 with and without WIN_REUSE_CRYPT_HANDLE.

Checklist

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

@dgarske dgarske self-assigned this Apr 23, 2025
@dgarske
Copy link
Copy Markdown
Member Author

dgarske commented Apr 24, 2025

Retest this please: "Found unhandled org.jenkinsci.plugins.workflow.support.steps.AgentOfflineException exception:"

@dgarske dgarske added Not For This Release Not for release 5.9.1 and removed Not For This Release Not for release 5.9.1 labels Apr 24, 2025
@dgarske dgarske assigned wolfSSL-Bot and unassigned dgarske Apr 25, 2025
Comment thread wolfcrypt/src/random.c
Comment thread wolfcrypt/src/random.c
Comment thread wolfcrypt/src/random.c Outdated
Comment thread wolfcrypt/src/random.c Outdated
@dgarske dgarske assigned dgarske and unassigned wolfSSL-Bot Apr 28, 2025
@dgarske dgarske requested a review from redbaron May 6, 2025 17:39
…ws crypt provider handle. Seeding happens on any new RNG or after `WC_RESEED_INTERVAL`. If using threads make sure wolfSSL_Init() or wolfCrypt_Init() is called before spinning up threads. ZD 19754. Fixed minor implicit cast warnings in internal.c. Add missing `hpke.c` to wolfssl VS project.
@dgarske
Copy link
Copy Markdown
Member Author

dgarske commented May 6, 2025

Retest this please: "Found unhandled org.jenkinsci.plugins.workflow.support.steps.AgentOfflineException exception:"

@dgarske dgarske assigned SparkiDev and unassigned dgarske May 6, 2025
@dgarske dgarske requested review from SparkiDev and removed request for redbaron May 6, 2025 23:31
@SparkiDev SparkiDev merged commit 4b73e70 into wolfSSL:master May 7, 2025
187 checks passed
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