Skip to content

2.41+ update from 2.39.1 breaks curl OpenSSL standalone functionality #4755

@ivanxpetrov

Description

@ivanxpetrov
  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
    64bit
$ git --version --build-options

cpu: x86_64
built from commit: 4b968f3ea3b32a7bc50846bab49f3f381841d297
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon

  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
    Windows 7
$ cmd.exe /c ver

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

  • What options did you set as part of the installation? Or did you choose the
    defaults?
    Defaults while upgrading
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
> type "$env:USERPROFILE\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: VIM
Custom Editor Path:
Default Branch Option:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Enabled
Enable Pseudo Console Support: Disabled
Enable FSMonitor: Disabled

  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

** insert your response here **

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Bash

curl https://somesite.com
  • What did you expect to occur after running these commands?

get the response

  • What actually happened instead?

Schannel erors

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

** insert URL here **

I would expect when upgrading to not have curl be broken by relying completely on Schanel even though the previous installation specified the CURLOption to be OpenSSL.

Is there a way to have the curl binary to be compiled like this:

curl 8.4.0 (x86_64-w64-mingw32) libcurl/8.4.0 OpenSSL/3.1.2 (Schannel) (https://curl.se/windows/dl-8.4.0_1/)

and not like this
curl 8.2.1 (x86_64-w64-mingw32) libcurl/8.2.1 Schannel

I am personally using Git bash not just for Git activities, and having curl not work with OpenSSL in any way (after several hours I couldn't find a way - please let me know if there is one) is breaking the functionality I came to expect. With no warning.

The only workaround I found is to replace the curl.exe with the one from link above -> (https://curl.se/windows/dl-8.4.0_1/). Not sure if that's gonna break something for git.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions