tls: added define condition on version functions