pub struct sec_identity { /* private fields */ }SecProtocolTypes only.Expand description
Implementations§
Source§impl sec_identity
impl sec_identity
Sourcepub unsafe fn create(identity: &SecIdentity) -> sec_identity_t
Available on crate feature SecBase only.
pub unsafe fn create(identity: &SecIdentity) -> sec_identity_t
SecBase only.Create an ARC-able sec_identity_t instance from a SecIdentityRef.
Parameter identity: A SecIdentityRef instance.
Returns: a sec_identity_t instance.
Sourcepub unsafe fn create_with_certificates(
identity: &SecIdentity,
certificates: &CFArray,
) -> sec_identity_t
Available on crate feature SecBase only.
pub unsafe fn create_with_certificates( identity: &SecIdentity, certificates: &CFArray, ) -> sec_identity_t
SecBase only.Create an ARC-able sec_identity_t instance from a SecIdentityRef and
array of SecCertificateRef instances.
Parameter identity: A SecIdentityRef instance.
Parameter certificates: An array of SecCertificateRef instances.
Returns: a sec_identity_t instance.
§Safety
certificates generic must be of the correct type.
Sourcepub unsafe fn access_certificates(
identity: sec_identity_t,
handler: &DynBlock<dyn Fn(sec_certificate_t)>,
) -> bool
Available on crate feature block2 only.
pub unsafe fn access_certificates( identity: sec_identity_t, handler: &DynBlock<dyn Fn(sec_certificate_t)>, ) -> bool
block2 only.Access the certificates associated with the sec_identity_t instance.
Parameter identity: A sec_identity_t instance.
Parameter handler: A block to invoke one or more times with sec_certificate_t instances.
Returns: Returns true if the peer certificates were accessible, false otherwise.
§Safety
identity must be a valid pointer.
Sourcepub unsafe fn ref(identity: sec_identity_t) -> Option<CFRetained<SecIdentity>>
Available on crate feature SecBase only.
pub unsafe fn ref(identity: sec_identity_t) -> Option<CFRetained<SecIdentity>>
SecBase only.Copy a retained reference to the underlying SecIdentityRef instance.
Parameter identity: A sec_identity_t instance.
Returns: The underlying SecIdentityRef instance.
§Safety
identity must be a valid pointer.
Sourcepub unsafe fn certificates_ref(
identity: sec_identity_t,
) -> Option<CFRetained<CFArray>>
pub unsafe fn certificates_ref( identity: sec_identity_t, ) -> Option<CFRetained<CFArray>>
Copy a retained reference to the underlying CFArrayRef container of SecCertificateRef types.
Parameter identity: A sec_identity_t instance.
Returns: The underlying CFArrayRef container with SecCertificateRef instances.
§Safety
identity must be a valid pointer.
Trait Implementations§
Source§impl Debug for sec_identity
impl Debug for sec_identity
Source§impl RefEncode for sec_identity
Available on crate feature objc2 only.
impl RefEncode for sec_identity
objc2 only.