Function

SSLCopyRequestedPeerNameLength

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

Declaration

OSStatus SSLCopyRequestedPeerNameLength(SSLContextRef ctx, size_t *peerNameLen);

Parameters

ctx

An SSL session context reference.

peerNameLen

The length of the peer name, as retrieved by calling the SSLCopyRequestedPeerName function.

Return Value

A result code. See Secure Transport Result Codes.

See Also

The Peer Domain Name

SSLSetPeerDomainName

Specifies the fully qualified domain name of the peer.

SSLGetPeerDomainNameLength

Determines the length of a previously set peer domain name.

SSLGetPeerDomainName

Retrieves the peer domain name specified previously.

SSLCopyRequestedPeerName

Determines the buffer size needed for the peer domain name.