Refactor ssl_get and tcpip_get to one function YAZ-831