Function

SSLGetClientCertificateState

Retrieves the exchange status of the client certificate.

Declaration

OSStatus SSLGetClientCertificateState(SSLContextRef context, SSLClientCertificateState *clientState);

Parameters

context

An SSL session context reference.

clientState

On return, a pointer to a value indicating the state of the client certificate exchange. See SSLClientCertificateState for a list of possible values.

Return Value

A result code. See Secure Transport Result Codes.

Discussion

The value returned reflects the latest change in the state of the client certificate exchange. If either peer initiates a renegotiation attempt, Secure Transport resets the state to kSSLClientCertNone.

See Also

Authentication

SSLAddDistinguishedName

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

SSLCopyDistinguishedNames

Retrieves the distinguished names of acceptable certification authorities.

SSLSetCertificate

Specifies this connection’s certificate or certificates.

SSLCopyPeerTrust

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

SSLClientCertificateState

An enumeration of the states of client certificate exchange.

SSLSetOCSPResponse

Sets the OCSP response for the given SSL session.

SSLSetSessionTicketsEnabled

Enables or disables session ticket resumption.