Realistic 3D camera system
3D camera system components
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
asio-1.10.6
include
asio
ssl
rfc2818_verification.hpp
Go to the documentation of this file.
1
//
2
// ssl/rfc2818_verification.hpp
3
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4
//
5
// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6
//
7
// Distributed under the Boost Software License, Version 1.0. (See accompanying
8
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9
//
10
11
#ifndef ASIO_SSL_RFC2818_VERIFICATION_HPP
12
#define ASIO_SSL_RFC2818_VERIFICATION_HPP
13
14
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
15
# pragma once
16
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17
18
#include "
asio/detail/config.hpp
"
19
20
#if !defined(ASIO_ENABLE_OLD_SSL)
21
# include <string>
22
# include "
asio/ssl/detail/openssl_types.hpp
"
23
# include "
asio/ssl/verify_context.hpp
"
24
#endif // !defined(ASIO_ENABLE_OLD_SSL)
25
26
#include "
asio/detail/push_options.hpp
"
27
28
namespace
asio
{
29
namespace
ssl {
30
31
#if !defined(ASIO_ENABLE_OLD_SSL)
32
35
64
class
rfc2818_verification
65
{
66
public
:
68
typedef
bool
result_type
;
69
71
explicit
rfc2818_verification
(
const
std::string& host)
72
: host_(host)
73
{
74
}
75
77
ASIO_DECL
bool
operator()
(
bool
preverified,
verify_context
& ctx)
const
;
78
79
private
:
80
// Helper function to check a host name against a pattern.
81
ASIO_DECL
static
bool
match_pattern(
const
char
* pattern,
82
std::size_t pattern_length,
const
char
* host);
83
84
// Helper function to check a host name against an IPv4 address
85
// The host name to be checked.
86
std::string host_;
87
};
88
89
#endif // defined(ASIO_ENABLE_OLD_SSL)
90
91
}
// namespace ssl
92
}
// namespace asio
93
94
#include "
asio/detail/pop_options.hpp
"
95
96
#if defined(ASIO_HEADER_ONLY)
97
# include "
asio/ssl/impl/rfc2818_verification.ipp
"
98
#endif // defined(ASIO_HEADER_ONLY)
99
100
#endif // ASIO_SSL_RFC2818_VERIFICATION_HPP
asio::ssl::rfc2818_verification::operator()
ASIO_DECL bool operator()(bool preverified, verify_context &ctx) const
Perform certificate verification.
Definition:
rfc2818_verification.ipp:35
config.hpp
push_options.hpp
openssl_types.hpp
asio::ssl::rfc2818_verification::rfc2818_verification
rfc2818_verification(const std::string &host)
Constructor.
Definition:
rfc2818_verification.hpp:71
pop_options.hpp
ASIO_DECL
#define ASIO_DECL
Definition:
config.hpp:43
asio::ssl::rfc2818_verification::result_type
bool result_type
The type of the function object's result.
Definition:
rfc2818_verification.hpp:68
asio::ssl::rfc2818_verification
Definition:
rfc2818_verification.hpp:64
rfc2818_verification.ipp
asio::ssl::verify_context
Definition:
verify_context.hpp:37
asio
Definition:
async_result.hpp:23
verify_context.hpp
Generated by
1.8.11