Added SSL support to sockets, SSL sockets aren't used yet though