Skip to content

"schannel: failed to retrieve ALPN result" when running on Windows 7 #840

Description

@tiwoc

I did this

We built libcurl with Visual Studio 2015 on Windows Server 2012 R2 (based on Windows 8.1) and linked it statically to an app that downloads a file via HTTP/1.1. This app was then executed on Windows 7. It failed with this error when trying to download this file:

schannel: failed to retrieve ALPN result

(see also #724, where ALPN support for schannel has been introduced)

Suspected root cause

The error occurs when libcurl calls QueryContextAttributes in schannel.c. This function has a minimum supported OS version of Windows 8.1 or Server 2012 R2. It is not guaranteed to work on older versions, like Windows 7 (where it fails when called with SECPKG_ATTR_APPLICATION_PROTOCOL).

I expected the following

The download should have succeeded.

curl/libcurl version

7.49.1 (all is well with 7.48.0)

operating system

  • libcurl was built on Windows Server 2012 R2
  • the build was used on Windows 7

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions