SSLCopyRequestedPeerNameLength(_:_:)
Obtains the hostname specified by the client in the ServerName extension (SNI). Server only.
Declaration
func SSLCopyRequestedPeerNameLength(_ ctx: SSLContext, _ peerNameLen: UnsafeMutablePointer<Int>) -> OSStatusParameters
- 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.