feat(build): use WinCNG as crypto backend for libssh2 windows

This commit is contained in:
crazywhalecc
2026-06-21 19:27:32 +08:00
parent 2a7966aa4b
commit fd8ab71d80
2 changed files with 2 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ libssh2:
metadata:
license-files: [COPYING]
license: BSD-3-Clause
depends:
depends@unix:
- openssl
headers:
- libssh2.h

View File

@@ -18,6 +18,7 @@ class libssh2
{
WindowsCMakeExecutor::create($lib)
->addConfigureArgs(
'-DCRYPTO_BACKEND=WinCNG',
'-DENABLE_ZLIB_COMPRESSION=ON',
'-DBUILD_TESTING=OFF'
)