Hello all,
In my app, I should implement some logic, depending on fact, if SSL handshake succeeded or failed.
I am using objects of type NSStream to create input and output TCP streams, communicating using TLS (with NSStreamSocketSecurityLevelNegotiatedSSL).
Then I am waiting events in stream:handleEvent: .
Then I am observing two following scenarios:
SSL handshake succeeded: I am receiving in stream:handleEvent: an event NSStreamEventOpenCompleted – that means (obviously) that TCP connection was established.
SSL handshake failed: I am receiving NSStreamEventOpenCompleted, and then - NSStreamEventErrorOccurred.
So, the question is: if there any way to receive a notification for NSStream, when
SSL handshake succeeded (not only TCP connection established)? I did not find any.
Thanks a lot,
Yulia