AppleTLS: Set error state when handshake fails...

+ some minor formatting issues.
Fix AppleTLSContext protocol selection