Pulsar java client lib already supports hostname verification with #1208. We should support the same for C++ client library.