Hi,
On Wed, 17 May 2017, Wojciech Lewandowski wrote:
> i would like to change "use the openSSL library" to "use the native
> windows secure channel library" after git installation. Is it possible
> ? Do you know how to change that ?
Yes, it is possible, and you can find out how exactly it is done by
inspecting the source code for the installer, which is at
https://github.com/git-for-windows/build-extra in the
installer/install.iss file (this file is also easily found by a `git grep
"Secure Channel"`).
The relevant part is when the installer tests for the GC_WinSSL option to
do more interesting stuff than recording the user's choice:
if RdbCurlVariant[GC_WinSSL].Checked and (not
ReplaceFile(BinDir+'curl-winssl\curl.exe',BinDir+'curl.exe') or not
ReplaceFile(BinDir+'curl-winssl\libcurl-4.dll',BinDir+'libcurl-4.dll'))
then begin
Log('Line {#__LINE__}: Replacing curl-openssl with curl-winssl failed.');
end;
(See
https://github.com/git-for-windows/build-extra/blob/97c8294b584ae4b99059a1194a5eba24ee2ff1ab/installer/install.iss#L1774)
In other words, the installer will simply try to replace the curl.exe and
libcurl-4.dll files in <Git>\mingw64\bin (or the 32-bit equivalent) by the
files in <Git>\mingw64\curl-winssl\.
Ciao,
Johannes