Retrieves the current peer ID data.
SDKs
- iOS 5.0–13.0Deprecated
- macOS 10.2–10.15Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–13.0Deprecated
- watchOS 2.0–6.0Deprecated
Framework
- Security
Declaration
func SSLGetPeerID(_ context: SSLContext, _ peerID: Unsafe Mutable Pointer<Unsafe Raw Pointer?>, _ peerIDLen: Unsafe Mutable Pointer<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 SSLSet
function, this function returns a NULL
pointer in the peer
parameter, and 0
in the peer
parameter.