Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to libssh2 1.9.0 #3

Closed
Jan-E opened this issue Jun 29, 2019 · 9 comments
Closed

Update to libssh2 1.9.0 #3

Jan-E opened this issue Jun 29, 2019 · 9 comments

Comments

@Jan-E
Copy link

Jan-E commented Jun 29, 2019

@weltling @cmb69
I had some trouble updating to libssh2 1.9.0. The changes in the project files are not obvious. You'll have to add three new 'existing items': blf.h, bcrypt_pbkdf.c and blowfish.c. Like this:

libssh2

Alternative route: create new project files by converting the libssh2.dsw and libssh2.dsp that are in the release tarballs of libssh2 1.9.0

@weltling
Copy link
Contributor

Thanks for the heads up and the tips, @Jan-E. We'll see to upgrade it for the next or the one after it. If you have a PR with the fix, also for the lower VS versions, please file it.

Thanks.

@Jan-E
Copy link
Author

Jan-E commented Jun 29, 2019

I do not have a PR, because I ended up converting the dsw/dsp. When I saw that this solved my initial compile errors, I investigated a little further and found out that blf.h had to be added as well. I tested this on the VS16 project file (with my own deps-path in stead of ..\deps).

@Jan-E
Copy link
Author

Jan-E commented Jun 29, 2019

@weltling
Copy link
Contributor

Thanks for more info. So it seems these files are not just missing in the solution, they're missing in the tarball. Lets see, probably some other libssh2 release will happen.

Thanks.

@Jan-E
Copy link
Author

Jan-E commented Jun 29, 2019

No, for Cmake some files were missing. For existing project files everything is there.

@cmb69
Copy link
Contributor

cmb69 commented Jun 29, 2019

Thanks, @Jan-E. I can confirm that we basically need the following patch:

 win32/libssh2_dll.vs16.vcxproj | 3 +++
 win32/libssh2_lib.vs16.vcxproj | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/win32/libssh2_dll.vs16.vcxproj b/win32/libssh2_dll.vs16.vcxproj
index 4325204..fd4356d 100644
--- a/win32/libssh2_dll.vs16.vcxproj
+++ b/win32/libssh2_dll.vs16.vcxproj
@@ -275,6 +275,8 @@
   </ItemDefinitionGroup>
   <ItemGroup>
     <ClCompile Include="..\src\agent.c" />
+    <ClCompile Include="..\src\bcrypt_pbkdf.c" />
+    <ClCompile Include="..\src\blowfish.c" />
     <ClCompile Include="..\src\channel.c" />
     <ClCompile Include="..\src\comp.c" />
     <ClCompile Include="..\src\crypt.c" />
@@ -300,6 +302,7 @@
   </ItemGroup>
   <ItemGroup>
     <ClInclude Include="..\include\libssh2.h" />
+    <ClInclude Include="..\src\blf.h" />
     <ClInclude Include="libssh2_config.h" />
     <ClInclude Include="..\include\libssh2_priv.h" />
     <ClInclude Include="..\include\libssh2_sftp.h" />
diff --git a/win32/libssh2_lib.vs16.vcxproj b/win32/libssh2_lib.vs16.vcxproj
index c789dfd..41c6382 100644
--- a/win32/libssh2_lib.vs16.vcxproj
+++ b/win32/libssh2_lib.vs16.vcxproj
@@ -199,6 +199,8 @@
   </ItemDefinitionGroup>
   <ItemGroup>
     <ClCompile Include="..\src\agent.c" />
+    <ClCompile Include="..\src\bcrypt_pbkdf.c" />
+    <ClCompile Include="..\src\blowfish.c" />
     <ClCompile Include="..\src\channel.c" />
     <ClCompile Include="..\src\comp.c" />
     <ClCompile Include="..\src\crypt.c" />
@@ -224,6 +226,7 @@
   </ItemGroup>
   <ItemGroup>
     <ClInclude Include="..\include\libssh2.h" />
+    <ClInclude Include="..\src\blf.h" />
     <ClInclude Include="libssh2_config.h" />
     <ClInclude Include="..\include\libssh2_priv.h" />
     <ClInclude Include="..\include\libssh2_sftp.h" />

@Jan-E
Copy link
Author

Jan-E commented Jun 29, 2019

OK. I am closing this issue and leave it up to you to update in due time.

@Jan-E Jan-E closed this as completed Jun 29, 2019
@Jan-E Jan-E reopened this Sep 6, 2021
@Jan-E
Copy link
Author

Jan-E commented Sep 6, 2021

In the mean time LibSSH2 1.10.0 has been released, with some fixes and support for OpenSSL 3.0 as well. Is not it time to update?

@cmb69
Copy link
Contributor

cmb69 commented Sep 6, 2021

Yeah, I've noticed that, but I didn't see any security fixes, so the update should only be for PHP-8.1 for now. I'll see to it.

@Jan-E Jan-E closed this as completed May 3, 2022
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

No branches or pull requests

3 participants