8000 Fix condition of evaluateServerTrust by ElfSundae · Pull Request #4552 · AFNetworking/AFNetworking · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.

Fix condition of evaluateServerTrust #4552

Merged

Conversation

ElfSundae
Copy link
Contributor

Related to #4542, fixes #4541

We should evaluate server trust only when performing server trust authentication.

@jshier jshier changed the base branch from master to bug/servertrust-crash April 19, 2020 02:14
@jshier
Copy link
Member
jshier commented Apr 19, 2020

This condition is more correct that the other, so I'm combining the two and both will get credit.

@jshier jshier merged commit a5fe977 into AFNetworking:bug/servertrust-crash Apr 19, 2020
@jshier jshier added this to the 4.0.1 milestone Apr 20, 2020
jshier added a commit that referenced this pull request Apr 20, 2020
* Fix serverTrust crash (#4542)

* Update readme, add stale bot, add issue template, add pull request template

* Update copy from Alamofire

* Fix crash on nil serverTrust

* Expose server trust error

* add test for error throws

* Fix nullability

* Fix evaluateServerTrust determination (#4552)

Co-authored-by: Jon Shier <jon@jonshier.com>

* Revert changes making error generation public.

This reverts commit 111352b.

# Conflicts:
#	AFNetworking/AFURLSessionManager.m

* Make static error function a method instead.

* Make trust generatio part of AFTestCase.

* Add test cases for server trust error generation.

* Mark parameters explicitly nullable.

* Fix nullability (#4551)

* Replace instead of appending to the default header (#4550)

* Replace instead of appending to the default header

* Add tests for setting HTTP headers per request

* Fix SPM usage with better publicHeadersPath. (#4554)

Co-authored-by: Jakub Kašpar <kaspikk@gmail.com>
Co-authored-by: Elf Sundae <elf.sundae@gmail.com>
@ElfSundae ElfSundae deleted the fix-challenge-handler branch April 21, 2020 08:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crashed!
2 participants
0