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
impl
context.hpp
Go to the documentation of this file.
1
//
2
// ssl/impl/context.hpp
3
// ~~~~~~~~~~~~~~~~~~~~
4
//
5
// Copyright (c) 2005 Voipster / Indrek dot Juhani at voipster dot com
6
// Copyright (c) 2005-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
7
//
8
// Distributed under the Boost Software License, Version 1.0. (See accompanying
9
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10
//
11
12
#ifndef ASIO_SSL_IMPL_CONTEXT_HPP
13
#define ASIO_SSL_IMPL_CONTEXT_HPP
14
15
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
16
# pragma once
17
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
18
19
#include "
asio/detail/config.hpp
"
20
21
#if !defined(ASIO_ENABLE_OLD_SSL)
22
# include "
asio/detail/throw_error.hpp
"
23
#endif // !defined(ASIO_ENABLE_OLD_SSL)
24
25
#include "
asio/detail/push_options.hpp
"
26
27
namespace
asio
{
28
namespace
ssl {
29
30
#if !defined(ASIO_ENABLE_OLD_SSL)
31
32
template
<
typename
VerifyCallback>
33
void
context::set_verify_callback
(VerifyCallback callback)
34
{
35
asio::error_code
ec;
36
this->
set_verify_callback
(callback, ec);
37
asio::detail::throw_error
(ec,
"set_verify_callback"
);
38
}
39
40
template
<
typename
VerifyCallback>
41
asio::error_code
context::set_verify_callback
(
42
VerifyCallback callback,
asio::error_code
& ec)
43
{
44
return
do_set_verify_callback(
45
new
detail::verify_callback<VerifyCallback>
(callback), ec);
46
}
47
48
template
<
typename
PasswordCallback>
49
void
context::set_password_callback
(PasswordCallback callback)
50
{
51
asio::error_code
ec;
52
this->
set_password_callback
(callback, ec);
53
asio::detail::throw_error
(ec,
"set_password_callback"
);
54
}
55
56
template
<
typename
PasswordCallback>
57
asio::error_code
context::set_password_callback
(
58
PasswordCallback callback,
asio::error_code
& ec)
59
{
60
return
do_set_password_callback(
61
new
detail::password_callback<PasswordCallback>
(callback), ec);
62
}
63
64
#endif // !defined(ASIO_ENABLE_OLD_SSL)
65
66
}
// namespace ssl
67
}
// namespace asio
68
69
#include "
asio/detail/pop_options.hpp
"
70
71
#endif // ASIO_SSL_IMPL_CONTEXT_HPP
asio::ssl::context::set_password_callback
void set_password_callback(PasswordCallback callback)
Set the password callback.
Definition:
context.hpp:49
asio::detail::throw_error
void throw_error(const asio::error_code &err)
Definition:
throw_error.hpp:31
config.hpp
asio::ssl::detail::password_callback
Definition:
password_callback.hpp:46
push_options.hpp
asio::ssl::detail::verify_callback
Definition:
verify_callback.hpp:43
pop_options.hpp
asio::ssl::context::set_verify_callback
void set_verify_callback(VerifyCallback callback)
Set the callback used to verify peer certificates.
Definition:
context.hpp:33
asio::error_code
Class to represent an error code value.
Definition:
error_code.hpp:80
throw_error.hpp
asio
Definition:
async_result.hpp:23
Generated by
1.8.11