Fix the non-SSL build.
Move TLS functions to client_tls.c.