Pass peer name to socket implementation.

This way, IO::Socket::SSL gets a chance to verify the hostname.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=738493 for
details.