Skip to content

wincng: on deinit, only close ECDSA/ECDH algos if set - #2189

Closed
vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:wcngi
Closed

vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:wcngi

Conversation

@vszakats

@vszakats vszakats commented Jul 3, 2026 •

Copy link
Copy Markdown
Member

To sync with rest of algos.

Reported by GitHub Code Quality

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Aligns the Windows CNG backend shutdown path with the rest of the crypto providers by avoiding BCryptCloseAlgorithmProvider() calls on unset ECDSA/ECDH algorithm handles during ssh2_crypto_exit().

Changes:

  • Guard ECDSA and ECDH per-curve algorithm-provider closes with if(handle) checks in ssh2_crypto_exit().

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

@vszakats vszakats closed this in efb0c0c Jul 3, 2026
@vszakats
vszakats deleted the wcngi branch July 3, 2026 10:52
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