SSL wrapper for socket objects (2.3, 2.4, 2.5 compatible)