Seperated SSL handshake from irc_network.c