SecCertificateCopyCommonName(_:_:)
Retrieves the common name of the subject of a certificate.
Declaration
func SecCertificateCopyCommonName(_ certificate: SecCertificate, _ commonName: UnsafeMutablePointer<CFString?>) -> OSStatusParameters
- certificate:
The certificate object from which to retrieve the common name.
- commonName:
On return, points to the common name. In Objective-C, call the Cfrelease function to release this object when you are finished with it.
Return Value
A result code. See Security Framework Result Codes.