added ability to set the SSL pinning mode