Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure: disable HSTS support #7669

Closed
MAntoniak opened this issue Sep 3, 2021 · 1 comment
Closed

configure: disable HSTS support #7669

MAntoniak opened this issue Sep 3, 2021 · 1 comment
Labels

Comments

@MAntoniak
Copy link
Contributor

I download a curl library from daily snapshots. I am trying to set up a build with openssl but no hsts support.
Looks like the use of:

./configure
./configure --disable-hsts
./configure --enable-hsts=no

gives the same result:

   curl version: 7.79.0-20210903
...
   HSTS: enabled (--disable-hsts)

I'm not sure if this is correct behavior? What am I missing?

@bagder bagder added the build label Sep 3, 2021
@bagder
Copy link
Member

bagder commented Sep 3, 2021

I can reproduce, but I haven't yet figured out why it does this...

bagder added a commit that referenced this issue Sep 4, 2021
The AC_ARG_ENABLE() macro itself uses a variable called
'enable_[option]', so when our script also used a variable with that
name for the purpose of storing what the user wants, it also
accidentally made it impossible to switch off the feature with
--disable-hsts. Fix this by renaming our variable.

Reported-by: Michał Antoniak
Fixes #7669
Closes #
@bagder bagder closed this as completed in 9829b94 Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants