#[repr(transparent)]pub struct SecTrustResultType(pub u32);
SecTrust
only.Expand description
Specifies the trust result type.
SecTrustResultType results have two dimensions. They specify both whether evaluation succeeded and whether this is because of a user decision. The commonly expected result is kSecTrustResultUnspecified, which indicates a positive result that wasn’t decided by the user. The common failure is kSecTrustResultRecoverableTrustFailure, which means a negative result. kSecTrustResultProceed and kSecTrustResultDeny are the positive and negative result respectively when decided by the user. User decisions are persisted through the use of SecTrustCopyExceptions() and SecTrustSetExceptions(). Finally, kSecTrustResultFatalTrustFailure is a negative result that must not be circumvented.
This result usually means that SecTrustEvaluate has not yet been called.
may be returned by the SecTrustEvaluate function or stored as part of the user trust settings.
is required before proceeding. Important: this value is no longer returned or supported by SecTrustEvaluate or the SecTrustSettings API starting in OS X 10.5; its use is deprecated in OS X 10.9 and later, as well as in iOS.
proceed. This value may be returned by the SecTrustEvaluate function or stored as part of the user trust settings.
and the certificate is implicitly trusted, but user intent was not explicitly specified. This value may be returned by the SecTrustEvaluate function or stored as part of the user trust settings.
failure which can be overridden by the user. This value may be returned by the SecTrustEvaluate function but not stored as part of the user trust settings.
which cannot be overridden by the user. This value may be returned by the SecTrustEvaluate function but not stored as part of the user trust settings.
of trust evaluation. This value may be returned by the SecTrustEvaluate function but not stored as part of the user trust settings.
See also Apple’s documentation
Tuple Fields§
§0: u32
Implementations§
Source§impl SecTrustResultType
impl SecTrustResultType
pub const Invalid: Self
pub const Proceed: Self
pub const Confirm: Self
pub const Deny: Self
pub const Unspecified: Self
pub const RecoverableTrustFailure: Self
pub const FatalTrustFailure: Self
pub const OtherError: Self
Trait Implementations§
Source§impl Clone for SecTrustResultType
impl Clone for SecTrustResultType
Source§fn clone(&self) -> SecTrustResultType
fn clone(&self) -> SecTrustResultType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SecTrustResultType
impl Debug for SecTrustResultType
Source§impl Encode for SecTrustResultType
Available on crate feature objc2
only.
impl Encode for SecTrustResultType
objc2
only.Source§impl Hash for SecTrustResultType
impl Hash for SecTrustResultType
Source§impl Ord for SecTrustResultType
impl Ord for SecTrustResultType
Source§fn cmp(&self, other: &SecTrustResultType) -> Ordering
fn cmp(&self, other: &SecTrustResultType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SecTrustResultType
impl PartialEq for SecTrustResultType
Source§impl PartialOrd for SecTrustResultType
impl PartialOrd for SecTrustResultType
Source§impl RefEncode for SecTrustResultType
Available on crate feature objc2
only.
impl RefEncode for SecTrustResultType
objc2
only.