123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- #ifndef BOOST_ASIO_SSL_RFC2818_VERIFICATION_HPP
- #define BOOST_ASIO_SSL_RFC2818_VERIFICATION_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1200)
- # pragma once
- #endif
- #include <boost/asio/detail/config.hpp>
- #if !defined(BOOST_ASIO_NO_DEPRECATED)
- #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 rfc2818_verification
- {
- public:
-
- typedef bool result_type;
-
- explicit rfc2818_verification(const std::string& host)
- : host_(host)
- {
- }
-
- BOOST_ASIO_DECL bool operator()(bool preverified, verify_context& ctx) const;
- private:
-
- BOOST_ASIO_DECL static bool match_pattern(const char* pattern,
- std::size_t pattern_length, const char* host);
-
-
- std::string host_;
- };
- }
- }
- }
- #include <boost/asio/detail/pop_options.hpp>
- #if defined(BOOST_ASIO_HEADER_ONLY)
- # include <boost/asio/ssl/impl/rfc2818_verification.ipp>
- #endif
- #endif
- #endif
|