SecureDownloadTrustEvaluateCallback

Type Alias SecureDownloadTrustEvaluateCallback 

Source
pub type SecureDownloadTrustEvaluateCallback = Option<unsafe extern "C-unwind" fn(*mut SecTrust, SecTrustResultType, *mut c_void) -> SecTrustResultType>;
👎Deprecated: SecureDownload is not supported
Available on crate features SecTrust and SecureDownload only.
Expand description

This callback is used called after trust has been evaluated.

Parameter trustRef: The trustRef for this evaluation

Parameter result: The result of the evaluation (See the SecTrust documentation).

Parameter evaluateContext: user defined.

Returns: A SecTrustResultType. Return the value passed in result if you do not want to change the evaluation result.

See also Apple’s documentation

Aliased Type§

pub enum SecureDownloadTrustEvaluateCallback {
    None,
    Some(unsafe extern "C-unwind" fn(*mut SecTrust, SecTrustResultType, *mut c_void) -> SecTrustResultType),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C-unwind" fn(*mut SecTrust, SecTrustResultType, *mut c_void) -> SecTrustResultType)

Some value of type T.