Refactor ssl_put and tcpip_put to one function YAZ-832