Remove SSL socket constructor.
Refactor code.