Function

SSLAddDistinguishedName(_:_:_:)

Adds a DER-encoded distinguished name to a list of acceptable names to be specified in requests for client certificates.

Declaration

func SSLAddDistinguishedName(_ context: SSLContext, _ derDN: UnsafeRawPointer?, _ derDNLen: Int) -> OSStatus

Parameters

context

An SSL session context reference.

derDN

A pointer to a buffer containing a DER-encoded distinguished name.

derDNLen

A value of type size_t representing the size of the buffer pointed to by the parameter derDN.

Return Value

A result code. See Secure Transport Result Codes.

See Also

Authentication

func SSLCopyDistinguishedNames(SSLContext, UnsafeMutablePointer<CFArray?>) -> OSStatus

Retrieves the distinguished names of acceptable certification authorities.

Deprecated
func SSLSetCertificate(SSLContext, CFArray?) -> OSStatus

Specifies this connection’s certificate or certificates.

Deprecated
func SSLCopyPeerTrust(SSLContext, UnsafeMutablePointer<SecTrust?>) -> OSStatus

Retrieves a trust management object for the certificate used by a session.

Deprecated
enum SSLClientCertificateState

An enumeration of the states of client certificate exchange.

func SSLSetOCSPResponse(SSLContext, CFData) -> OSStatus

Sets the OCSP response for the given SSL session.

Deprecated
func SSLSetSessionTicketsEnabled(SSLContext, Bool) -> OSStatus

Enables or disables session ticket resumption.

Deprecated