Function

SSLGetPeerID

Retrieves the current peer ID data.

Declaration

OSStatus SSLGetPeerID(SSLContextRef context, const void * _Nullable *peerID, size_t *peerIDLen);

Parameters

context

An SSL session context reference.

peerID

On return, points to a buffer containing the peer ID data.

peerIDLen

On return, the length of the peer ID data buffer.

Return Value

A result code. See Secure Transport Result Codes.

Discussion

If the peer ID data for this context was not set by calling the SSLSetPeerID function, this function returns a NULL pointer in the peerID parameter, and 0 in the peerIDLen parameter.

See Also

Session State

SSLHandshake

Performs the SSL handshake.

SSLReHandshake

Requests renegotiation of the SSL handshake. Server only.

SSLClose

Terminates the current SSL session.

SSLSetPeerID

Specifies data that is sufficient to uniquely identify the peer of the current session.

SSLGetSessionState

Retrieves the state of an SSL session.

SSLSessionState

The flags that represent the state of an SSL session.

SSLSetError

Sets the status of a session context.