Function

SSLCopyRequestedPeerName(_:_:_:)

Determines the buffer size needed for the peer domain name.

Declaration

func SSLCopyRequestedPeerName(_ context: SSLContext, _ peerName: UnsafeMutablePointer<Int8>, _ peerNameLen: UnsafeMutablePointer<Int>) -> OSStatus

Parameters

context

An SSL session context reference.

peerName

The fully qualified domain name of the peer—for example, store.apple.com. The name is in the form of a C string, except that 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 peerNameLen returned by this function when calling the SSLCopyRequestedPeerNameLength(_:_:) function.

See Also

The Peer Domain Name

func SSLSetPeerDomainName(SSLContext, UnsafePointer<Int8>?, Int) -> OSStatus

Specifies the fully qualified domain name of the peer.

Deprecated
func SSLGetPeerDomainNameLength(SSLContext, UnsafeMutablePointer<Int>) -> OSStatus

Determines the length of a previously set peer domain name.

Deprecated
func SSLCopyRequestedPeerNameLength(SSLContext, UnsafeMutablePointer<Int>) -> OSStatus

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

Deprecated