git config - choosing https transport backend

4,695 views
Skip to first unread message

Wojciech Lewandowski

unread,
May 18, 2017, 8:34:14 AM5/18/17
to git-for-windows
Hi,
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 ?

I will be grateful for helping me solve this without reinstalling git on users notebooks.

Johannes Schindelin

unread,
May 19, 2017, 7:17:48 AM5/19/17
to Wojciech Lewandowski, git-for-windows
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

Reply all
Reply to author
Forward
0 new messages