Function

SecTrustEvaluateAsync

Evaluates a trust object asynchronously on the specified dispatch queue.

Declaration

OSStatus SecTrustEvaluateAsync(SecTrustRef trust, dispatch_queue_t queue, SecTrustCallback result);

Parameters

trust

The trust management object to evaluate. A trust management object includes the certificate to be verified plus the policy or policies to be used in evaluating trust. It can optionally also include other certificates to be used in verifying the first certificate. Use the SecTrustCreateWithCertificates function to create a trust management object.

queue

The dispatch queue on which the result block should execute.

result

A block called with the result of evaluation. See SecTrustResultType for descriptions of possible values.

Return Value

Discussion

This function is functionally equivalent to SecTrustEvaluate except that it performs evaluation asynchronously and calls a block when evaluation completes. For a detailed discussion of the evaluation process, see SecTrustEvaluate.

See Also

Trust Evaluation

Evaluating a Trust and Parsing the Result

Learn what to expect when evaluating a trust object.

SecTrustEvaluate

Evaluates trust for the specified certificate and policies.

SecTrustCallback

A block called with the results of an asynchronous trust evaluation.

SecTrustResultType

The trust evaluation result.