Determines the buffer size needed for the peer domain name.
SDKs
- iOS 9.0–13.0Deprecated
- macOS 10.11–10.15Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–13.0Deprecated
- watchOS 2.0–6.0Deprecated
Framework
- Security
Declaration
OSStatus SSLCopyRequestedPeerName(SSLContext Ref context, char *peerName, size _t *peerNameLen);
Parameters
context
An SSL session context reference.
peerName
The fully qualified domain name of the peer—for example,
store
. The name is in the form of a C string, except that.apple .com NULL
termination is optional.peerNameLen
On return, points to the length of the peer domain name.
Return Value
A result code. See Secure Transport Result Codes.
Discussion
Use the peer
returned by this function when calling the SSLCopy
function.