pub trait SecIdentityExt {
// Required method
fn with_certificate(
keychains: &[SecKeychain],
certificate: &SecCertificate,
) -> Result<SecIdentity>;
}
Expand description
An extension trait adding OSX specific functionality to SecIdentity
.
Required Methods§
Sourcefn with_certificate(
keychains: &[SecKeychain],
certificate: &SecCertificate,
) -> Result<SecIdentity>
fn with_certificate( keychains: &[SecKeychain], certificate: &SecCertificate, ) -> Result<SecIdentity>
Creates an identity corresponding to a certificate, looking in the provided keychains for the corresponding private key.
To search the default keychains, use an empty slice for keychains
.
https://developer.apple.com/documentation/security/1401160-secidentitycreatewithcertificate
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.