Showing posts with label openssl. Show all posts
Showing posts with label openssl. Show all posts

Friday, February 08, 2013

OpenSSL 1.0.1d and cURL 7.29.0

It happened again, now with OpenSSL and cURL. New versions of these libraries were released. See below how to update them. As with Boost before the next MinGW distro will include the updated OpenSSL and cURL.
Assuming you have installed it in C:\MinGW directory:
  • Clean up the existing cURL files:
cd C:\MinGW
rmdir /s /q include\curl
rmdir /s /q include\openssl
rmdir /s /q ssl
cd C:\MinGW
bin\bsdtar -xvJf curl-7.29.0.tar.xz
bin\bsdtar -xvJf openssl-1.0.1d.tar.xz

Friday, November 23, 2012

Building OpenSSL applications

An user has reported problems building an application that use OpenSSL libraries supplied with my MinGW Distro. While he didn't provide further details I think his problem was related to some missing library dependencies.
Any application using OpenSSL has to link with (in this order): ssl, crypto, ws2_32 and gdi32. ssl and crypto are the OpenSSL libraries themselves. ws2_32 is the import library for the Winsock DLL WS2_32.DLL and gdi32 is the import library for GDI32.DLL. The latter is needed because, on Microsoft Windows, OpenSSL uses windows events (eg, mouse movements) as an entropy source.
If you are using a IDE (like Codelite or Code::Blocks) make sure to add those libraries to the project settings.