Removed recursion during ssl handshake (should fix #34)