pub unsafe extern "C-unwind" fn SecIdentityCopyPrivateKey(
identity_ref: &SecIdentity,
private_key_ref: NonNull<*mut SecKey>,
) -> i32
Available on crate features
SecIdentity
and SecBase
only.Expand description
Returns the private key associated with an identity.
Parameter identityRef
: An identity reference.
Parameter privateKeyRef
: On return, a pointer to the private key for the given
identity. On iOS, the private key must be of class type kSecAppleKeyItemClass.
You are responsible for releasing this reference by calling the CFRelease function.
Returns: A result code. See “Security Error Codes” (SecBase.h).