[PULL 20/32] crypto: shorten the endpoint == server check in TLS creds