Contents

SecCertificateCopyShortDescription(_:_:_:)

Returns a copy of the short description of a certificate.

Declaration

func SecCertificateCopyShortDescription(_ alloc: CFAllocator?, _ certificate: SecCertificate, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> CFString?

Parameters

  • alloc:

    The allocator that should be used. Pass NULL or Kcfallocatordefault to use the default allocator.

  • certificate:

    The certificate from which the short description should be copied.

  • error:

    A pointer to a Cferror variable where an error object is stored upon failure. If not NULL, the caller is responsible for checking this variable and releasing the resulting object if it exists.

Return Value

A string object containing the short description, or NULL if an error occurred. In Objective-C, free this object with CFRelease when you are done with it.

Discussion

The format of this string is not guaranteed to be consistent across different operating systems or versions. Do not attempt to parse it programmatically.