Perform SSL handshaking.
template< typename Stream> asio::error_code handshake( impl_type & impl, Stream & next_layer, stream_base::handshake_type type, asio::error_code & ec);