2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-23 05:22:08 +00:00
Files
asio/test/ssl/host_name_verification.cpp
Christopher Kohlhoff 62dad58386 Add ssl::host_name_verification.
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.
2020-04-07 11:44:28 +10:00

26 lines
659 B
C++

//
// host_name_verification.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Disable autolinking for unit tests.
#if !defined(BOOST_ALL_NO_LIB)
#define BOOST_ALL_NO_LIB 1
#endif // !defined(BOOST_ALL_NO_LIB)
// Test that header file is self-contained.
#include <boost/asio/ssl/host_name_verification.hpp>
#include "../unit_test.hpp"
BOOST_ASIO_TEST_SUITE
(
"ssl/host_name_verification",
BOOST_ASIO_TEST_CASE(null_test)
)