Performs a normal application-level read operation.
- iOS 5.0+
- macOS 10.2+
- tvOS 9.0+
- watchOS 2.0+
An SSL session context reference.
On return, points to the data read. You must allocate this buffer before calling the function. The size of this buffer must be equal to or greater than the value in the
The amount of data you would like to read.
On return, points to the number of bytes actually read.
A result code. See Secure Transport Result Codes.
SSLRead function might call the
SSLRead function that you provide (see
SSLSet. Because you may configure the underlying connection to operate in a nonblocking manner, a read operation might return
err, indicating that less data than requested was actually transferred. In this case, you should repeat the call to
SSLRead until some other result is returned.