Skip to content

fix: Skip hostname checks if CURLRequest options 'verify' is set to false. - #8257

Closed
NicolaeIotu wants to merge 4 commits into
codeigniter4:developfrom
NicolaeIotu:CURLOPT_SSL_VERIFYHOST
Closed

NicolaeIotu wants to merge 4 commits into
codeigniter4:developfrom
NicolaeIotu:CURLOPT_SSL_VERIFYHOST

Conversation

@NicolaeIotu

@NicolaeIotu NicolaeIotu commented Nov 26, 2023

Copy link
Copy Markdown
Contributor

When CURLRequest options 'verify' is set to false, some CURLOPT_SSL_... options should be disabled in such a way as to allow requests to pass through in case the destination is for example on private networks.

Description
Explain what you have changed, and why.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

When CURLRequest options 'verify' is set to false, some CURLOPT_SSL_... options should be disabled in such a way as to allow requests to pass through in case the destination is for example on private networks.
@kenjis

kenjis commented Nov 26, 2023

Copy link
Copy Markdown
Member

Thank you for sending a PR.
But some checks were not successful.
Please fix the code to pass all checks.

First of all, you need to sign your git commits.
https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md#signing

@kenjis kenjis changed the title Skip hostname checks if CURLRequest options 'verify' is set to false. fix: Skip hostname checks if CURLRequest options 'verify' is set to false. Nov 26, 2023
@kenjis kenjis added the bug Verified issues on the current code behavior or pull requests that will fix them label Nov 26, 2023
When CURLRequest options 'verify' is set to false, some CURLOPT_SSL_... options should be disabled in such a way as to allow requests to pass through in case the destination is for example on private networks.
@NicolaeIotu

Copy link
Copy Markdown
Contributor Author

I will redo this PR.

@NicolaeIotu
NicolaeIotu deleted the CURLOPT_SSL_VERIFYHOST branch November 26, 2023 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Verified issues on the current code behavior or pull requests that will fix them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants