Realistic 3D camera system
3D camera system components
Public Types | Public Member Functions | List of all members
asio::ssl::old::context_service Class Reference

Default service implementation for a context. More...

#include <context_service.hpp>

Inheritance diagram for asio::ssl::old::context_service:
asio::detail::service_base< context_service > asio::io_service::service asio::detail::noncopyable

Public Types

typedef service_impl_type::impl_type impl_type
 The type of the context. More...
 

Public Member Functions

 context_service (asio::io_service &io_service)
 Constructor. More...
 
impl_type null () const
 Return a null context implementation. More...
 
void create (impl_type &impl, context_base::method m)
 Create a new context implementation. More...
 
void destroy (impl_type &impl)
 Destroy a context implementation. More...
 
asio::error_code set_options (impl_type &impl, context_base::options o, asio::error_code &ec)
 Set options on the context. More...
 
asio::error_code set_verify_mode (impl_type &impl, context_base::verify_mode v, asio::error_code &ec)
 Set peer verification mode. More...
 
asio::error_code load_verify_file (impl_type &impl, const std::string &filename, asio::error_code &ec)
 Load a certification authority file for performing verification. More...
 
asio::error_code add_verify_path (impl_type &impl, const std::string &path, asio::error_code &ec)
 
asio::error_code use_certificate_file (impl_type &impl, const std::string &filename, context_base::file_format format, asio::error_code &ec)
 Use a certificate from a file. More...
 
asio::error_code use_certificate_chain_file (impl_type &impl, const std::string &filename, asio::error_code &ec)
 Use a certificate chain from a file. More...
 
asio::error_code use_private_key_file (impl_type &impl, const std::string &filename, context_base::file_format format, asio::error_code &ec)
 Use a private key from a file. More...
 
asio::error_code use_rsa_private_key_file (impl_type &impl, const std::string &filename, context_base::file_format format, asio::error_code &ec)
 Use an RSA private key from a file. More...
 
asio::error_code use_tmp_dh_file (impl_type &impl, const std::string &filename, asio::error_code &ec)
 Use the specified file to obtain the temporary Diffie-Hellman parameters. More...
 
template<typename PasswordCallback >
asio::error_code set_password_callback (impl_type &impl, PasswordCallback callback, asio::error_code &ec)
 Set the password callback. More...
 
- Public Member Functions inherited from asio::detail::service_base< context_service >
 service_base (asio::io_service &io_service)
 
- Public Member Functions inherited from asio::io_service::service
asio::io_serviceget_io_service ()
 Get the io_service object that owns the service. More...
 

Additional Inherited Members

- Static Public Attributes inherited from asio::detail::service_base< context_service >
static asio::detail::service_id< context_service > id
 
- Protected Member Functions inherited from asio::io_service::service
ASIO_DECL service (asio::io_service &owner)
 Constructor. More...
 
virtual ASIO_DECL ~service ()
 Destructor. More...
 

Detailed Description

Default service implementation for a context.

Definition at line 34 of file context_service.hpp.

Member Typedef Documentation

The type of the context.

Definition at line 55 of file context_service.hpp.

Constructor & Destructor Documentation

asio::ssl::old::context_service::context_service ( asio::io_service io_service)
inlineexplicit

Constructor.

Definition at line 59 of file context_service.hpp.

Member Function Documentation

asio::error_code asio::ssl::old::context_service::add_verify_path ( impl_type impl,
const std::string &  path,
asio::error_code ec 
)
inline

Add a directory containing certification authority files to be used for performing verification.

Definition at line 106 of file context_service.hpp.

void asio::ssl::old::context_service::create ( impl_type impl,
context_base::method  m 
)
inline

Create a new context implementation.

Definition at line 72 of file context_service.hpp.

void asio::ssl::old::context_service::destroy ( impl_type impl)
inline

Destroy a context implementation.

Definition at line 78 of file context_service.hpp.

asio::error_code asio::ssl::old::context_service::load_verify_file ( impl_type impl,
const std::string &  filename,
asio::error_code ec 
)
inline

Load a certification authority file for performing verification.

Definition at line 98 of file context_service.hpp.

impl_type asio::ssl::old::context_service::null ( ) const
inline

Return a null context implementation.

Definition at line 66 of file context_service.hpp.

asio::error_code asio::ssl::old::context_service::set_options ( impl_type impl,
context_base::options  o,
asio::error_code ec 
)
inline

Set options on the context.

Definition at line 84 of file context_service.hpp.

template<typename PasswordCallback >
asio::error_code asio::ssl::old::context_service::set_password_callback ( impl_type impl,
PasswordCallback  callback,
asio::error_code ec 
)
inline

Set the password callback.

Definition at line 152 of file context_service.hpp.

asio::error_code asio::ssl::old::context_service::set_verify_mode ( impl_type impl,
context_base::verify_mode  v,
asio::error_code ec 
)
inline

Set peer verification mode.

Definition at line 91 of file context_service.hpp.

asio::error_code asio::ssl::old::context_service::use_certificate_chain_file ( impl_type impl,
const std::string &  filename,
asio::error_code ec 
)
inline

Use a certificate chain from a file.

Definition at line 121 of file context_service.hpp.

asio::error_code asio::ssl::old::context_service::use_certificate_file ( impl_type impl,
const std::string &  filename,
context_base::file_format  format,
asio::error_code ec 
)
inline

Use a certificate from a file.

Definition at line 113 of file context_service.hpp.

asio::error_code asio::ssl::old::context_service::use_private_key_file ( impl_type impl,
const std::string &  filename,
context_base::file_format  format,
asio::error_code ec 
)
inline

Use a private key from a file.

Definition at line 128 of file context_service.hpp.

asio::error_code asio::ssl::old::context_service::use_rsa_private_key_file ( impl_type impl,
const std::string &  filename,
context_base::file_format  format,
asio::error_code ec 
)
inline

Use an RSA private key from a file.

Definition at line 136 of file context_service.hpp.

asio::error_code asio::ssl::old::context_service::use_tmp_dh_file ( impl_type impl,
const std::string &  filename,
asio::error_code ec 
)
inline

Use the specified file to obtain the temporary Diffie-Hellman parameters.

Definition at line 144 of file context_service.hpp.


The documentation for this class was generated from the following file: