ns_read_from_socket(), SSL case