Skip to content

cmake: default NTLM client to off if no HTTPS support#5124

Merged
ethomson merged 1 commit intolibgit2:masterfrom
pks-t:pks/cmake-ntlm-without-https
Jun 17, 2019
Merged

cmake: default NTLM client to off if no HTTPS support#5124
ethomson merged 1 commit intolibgit2:masterfrom
pks-t:pks/cmake-ntlm-without-https

Conversation

@pks-t
Copy link
Copy Markdown
Member

@pks-t pks-t commented Jun 17, 2019

If building libgit2 with -DUSE_HTTPS=NO, then CMake will
generate an error complaining that there's no usable HTTPS
backend for NTLM. In fact, it doesn't make sense to support NTLM
when we don't support HTTPS. So let's should just have
NTLM default to OFF when HTTPS is disabled to make life easier
and to fix our OSSFuzz builds failing.

If building libgit2 with `-DUSE_HTTPS=NO`, then CMake will
generate an error complaining that there's no usable HTTPS
backend for NTLM. In fact, it doesn't make sense to support NTLM
when we don't support HTTPS. So let's should just have
NTLM default to OFF when HTTPS is disabled to make life easier
and to fix our OSSFuzz builds failing.
@pks-t pks-t force-pushed the pks/cmake-ntlm-without-https branch from 7addced to 393fb8a Compare June 17, 2019 10:35
Comment thread CMakeLists.txt
OPTION(USE_NTLMCLIENT "Enable NTLM support on Unix." OFF )
ELSE()
OPTION(USE_NTLMCLIENT "Enable NTLM support on Unix." ON )
ENDIF()
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's quite verbose, but as far as I know there's no other way to do it due to USE_HTTPS accepting not only ON/OFF, but specific backends, too.

@ethomson
Copy link
Copy Markdown
Member

Makes sense.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants