Function

SSLGetPeerID(_:_:_:)

Retrieves the current peer ID data.

Declaration

func SSLGetPeerID(_ context: SSLContext, _ peerID: UnsafeMutablePointer<UnsafeRawPointer?>, _ peerIDLen: UnsafeMutablePointer<Int>) -> OSStatus

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

func SSLHandshake(SSLContext) -> OSStatus

Performs the SSL handshake.

Deprecated
func SSLReHandshake(SSLContext) -> OSStatus

Requests renegotiation of the SSL handshake. Server only.

Deprecated
func SSLClose(SSLContext) -> OSStatus

Terminates the current SSL session.

Deprecated
func SSLSetPeerID(SSLContext, UnsafeRawPointer?, Int) -> OSStatus

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

Deprecated
enum SSLSessionState

The flags that represent the state of an SSL session.

func SSLSetError(SSLContext, OSStatus) -> OSStatus

Sets the status of a session context.

Deprecated