Merge pull request #2574 from csware/hostname-for-certificate_check_cb Provide host name to certificate_check_cb