Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

ServerTrustEvaluating

mattt edited this page Sep 18, 2020 · 2 revisions

ServerTrustEvaluating

A protocol describing the API used to evaluate server trusts.

public protocol ServerTrustEvaluating

Requirements

evaluate(_:​forHost:​)

!((os(Linux)))

Evaluates the given SecTrust value for the given host.

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.

Returns

A Bool indicating whether the evaluator considers the SecTrust value valid for host.

Types
Protocols
Global Typealiases
Clone this wiki locally