The ssl::host_name_verification class is a drop-in replacement for ssl::rfc2818_verification, which it supersedes. The ssl::rfc2818_verification class has been marked as deprecated. Thanks to Arvid Norberg for providing the implementation.