1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #ifndef BOOST_ASIO_SSL_HOST_NAME_VERIFICATION_HPP
- #define BOOST_ASIO_SSL_HOST_NAME_VERIFICATION_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1200)
- # pragma once
- #endif
- #include <boost/asio/detail/config.hpp>
- #include <string>
- #include <boost/asio/ssl/detail/openssl_types.hpp>
- #include <boost/asio/ssl/verify_context.hpp>
- #include <boost/asio/detail/push_options.hpp>
- namespace boost {
- namespace asio {
- namespace ssl {
- class host_name_verification
- {
- public:
-
- typedef bool result_type;
-
- explicit host_name_verification(const std::string& host)
- : host_(host)
- {
- }
-
- BOOST_ASIO_DECL bool operator()(bool preverified, verify_context& ctx) const;
- private:
-
-
- std::string host_;
- };
- }
- }
- }
- #include <boost/asio/detail/pop_options.hpp>
- #if defined(BOOST_ASIO_HEADER_ONLY)
- # include <boost/asio/ssl/impl/host_name_verification.ipp>
- #endif
- #endif
|