Trait security_framework::os::macos::identity::SecIdentityExt
source · [−]pub trait SecIdentityExt {
fn with_certificate(
keychains: &[SecKeychain],
certificate: &SecCertificate
) -> Result<SecIdentity>;
}
Expand description
An extension trait adding OSX specific functionality to SecIdentity
.
Required methods
fn 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.