Skip to content

Improve NCauth creation from RC file - #3419

Merged
WardF merged 9 commits into
Unidata:mainfrom
mannreis:ncrc-http.ssl
Jul 31, 2026
Merged

Improve NCauth creation from RC file#3419
WardF merged 9 commits into
Unidata:mainfrom
mannreis:ncrc-http.ssl

Conversation

@mannreis

@mannreis mannreis commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

This PR fixes #3408. I was aware of this issue from when I was fetching data from a local S3/HTTP server (no cert or self-signed).

It also:

  • Adds unit testing for the faulty helper function setauthfield. Mainly to catch regressions.
  • Removing setdefaults() since once can replace it with a simple memcpy from a static const NCauth with the default values.
  • Minor refactoring
  • It also allows one to set HTTP.SSL.{VALIDATE|VERIFYPEER|VERIFYHOST} to on/off/true/false/ (case insensitive).
  • The caveat/question: if the value is invalid, what should be the behaviour? Fail or setting to the defaults?

@mannreis
mannreis requested a review from WardF as a code owner July 28, 2026 11:18
@WardF
WardF merged commit db5a7f9 into Unidata:main Jul 31, 2026
115 checks passed
@mannreis
mannreis deleted the ncrc-http.ssl branch August 13, 2026 09:20
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.

Curl options VERIFYHOST and VERIFYPEER cannot be disabled

2 participants