php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #77504 ssh2 cannot use WinSSL/schannel
Submitted: 2019-01-23 01:26 UTC Modified: 2024-11-12 20:00 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: vjardin at free dot fr Assigned:
Status: Open Package: *General Issues
PHP Version: 7.3.1 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vjardin at free dot fr
New email:
PHP Version: OS:

 

 [2019-01-23 01:26 UTC] vjardin at free dot fr
Description:
------------
Windows includes a secure store that should be used. For instance, its curl.exe or libssh2 can leverage the schannel/WinSSL API.

Currently, PHP ssh2 on Windows assumes to be built only with OpenSSL.

Windows native WinSSL would be a better option by default.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2024-11-12 20:00 UTC] cmb@php.net
-Package: ssh2 +Package: *General Issues
 [2024-11-12 20:00 UTC] cmb@php.net
There are actually two not necessarily related issues:

1. Should libssh2 built for Windows use Schannel instead of OpenSSL?

2. Which assumptions about libssh2 should be made by ext/shh2?

(1) would be an issue with winlibs[1].  There had already been some
discussion regarding cURL[2].

(2) could be solved by using pkg-config[3].  This way users could
do custom builds of libssh2, and use these to build ext/ssh2.  Not
necessarily convenient, but a first step.  And given that it's not
hard to set up suitable Github actions nowadays, a viable option.

[1] <https://github.com/winlibs>
[2] <https://github.com/winlibs/cURL/issues/13>
[3] <https://github.com/php/php-src/issues/16752>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 14 00:01:26 2024 UTC