Function

SSLGetPeerDomainName

Retrieves the peer domain name specified previously.

Declaration

OSStatus SSLGetPeerDomainName(SSLContextRef context, char *peerName, size_t *peerNameLen);

Parameters

context

An SSL session context reference.

peerName

On return, points to the peer domain name.

peerNameLen

A pointer to the length of the peer domain name. Before calling this function, retrieve the peer domain name length by calling the function SSLGetPeerDomainNameLength.

Return Value

A result code. See Secure Transport Result Codes.

Discussion

If you previously called the SSLSetPeerDomainName function to specify a fully qualified domain name for the peer certificate, you can use the SSLGetPeerDomainName function to retrieve the domain name.

See Also

The Peer Domain Name

SSLSetPeerDomainName

Specifies the fully qualified domain name of the peer.

Deprecated
SSLGetPeerDomainNameLength

Determines the length of a previously set peer domain name.

Deprecated
SSLCopyRequestedPeerName

Determines the buffer size needed for the peer domain name.

Deprecated
SSLCopyRequestedPeerNameLength

Obtains the hostname specified by the client in the ServerName extension (SNI). Server only.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software