• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CFNetwork: Notification for SSL/TLS handshake succeeded
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFNetwork: Notification for SSL/TLS handshake succeeded


  • Subject: CFNetwork: Notification for SSL/TLS handshake succeeded
  • From: Yulia Bensman <email@hidden>
  • Date: Wed, 14 Oct 2015 07:44:41 +0000
  • Thread-topic: CFNetwork: Notification for SSL/TLS handshake succeeded

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

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: CFNetwork: Notification for SSL/TLS handshake succeeded
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Prev by Date: Re: What causes a UDP listener to stop listening?
  • Next by Date: Re: CFNetwork: Notification for SSL/TLS handshake succeeded
  • Previous by thread: Re: What causes a UDP listener to stop listening?
  • Next by thread: Re: CFNetwork: Notification for SSL/TLS handshake succeeded
  • Index(es):
    • Date
    • Thread