SSLCopyRequestedPeerName(_:_:_:)
Determines the buffer size needed for the peer domain name.
Declaration
func SSLCopyRequestedPeerName(_ context: SSLContext, _ peerName: UnsafeMutablePointer<CChar>, _ peerNameLen: UnsafeMutablePointer<Int>) -> OSStatusParameters
- 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 thatNULLtermination 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.