Fixed to work with IO::Socket::SSL v1.7 or later.