Use Error handle for stream_enable_crypto