[PATCH 4.14 020/146] tls: Add function to update the TLS socket configuration