Back to Alamofire

[ServerTrustEvaluating]

docs/Extensions/[ServerTrustEvaluating].html

5.12.0628 B
Original Source

[ServerTrustEvaluating]

`

                evaluate(_:forHost:)
                `

Evaluates the given SecTrust value for the given host.

Declaration

Swift

public func evaluate(_ trust: SecTrust, forHost host: String) throws

Parameters

| trust |

The SecTrust value to evaluate.

| | host |

The host for which to evaluate the SecTrust value.

|

Return Value

Whether or not the evaluator considers the SecTrust value valid for host.