All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Types | Private Attributes
asio::ssl::context_service Class Reference

Default service implementation for a context. More...

#include <context_service.hpp>

Inheritance diagram for asio::ssl::context_service:
Inheritance graph
[legend]

List of all members.

Public Types

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

Public Member Functions

asio::error_code add_verify_path (impl_type &impl, const std::string &path, asio::error_code &ec)
 context_service (asio::io_service &io_service)
 Constructor.
void create (impl_type &impl, context_base::method m)
 Create a new context implementation.
void destroy (impl_type &impl)
 Destroy a context implementation.
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.
impl_type null () const
 Return a null context implementation.
asio::error_code set_options (impl_type &impl, context_base::options o, asio::error_code &ec)
 Set options on the context.
template<typename PasswordCallback >
asio::error_code set_password_callback (impl_type &impl, PasswordCallback callback, asio::error_code &ec)
 Set the password callback.
asio::error_code set_verify_mode (impl_type &impl, context_base::verify_mode v, asio::error_code &ec)
 Set peer verification mode.
void shutdown_service ()
 Destroy all user-defined handler objects owned by the service.
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.
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.
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.
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.
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.

Private Types

typedef
detail::openssl_context_service 
service_impl_type

Private Attributes

service_impl_typeservice_impl_

Detailed Description

Default service implementation for a context.

Definition at line 36 of file context_service.hpp.


Member Typedef Documentation

The type of the context.

Definition at line 57 of file context_service.hpp.

Definition at line 45 of file context_service.hpp.


Constructor & Destructor Documentation

asio::ssl::context_service::context_service ( asio::io_service io_service) [inline, explicit]

Constructor.

Definition at line 61 of file context_service.hpp.


Member Function Documentation

asio::error_code asio::ssl::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 113 of file context_service.hpp.

Create a new context implementation.

Definition at line 79 of file context_service.hpp.

Destroy a context implementation.

Definition at line 85 of file context_service.hpp.

asio::error_code asio::ssl::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 105 of file context_service.hpp.

Return a null context implementation.

Definition at line 73 of file context_service.hpp.

Set options on the context.

Definition at line 91 of file context_service.hpp.

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

Set the password callback.

Definition at line 159 of file context_service.hpp.

Set peer verification mode.

Definition at line 98 of file context_service.hpp.

Destroy all user-defined handler objects owned by the service.

Implements asio::io_service::service.

Definition at line 68 of file context_service.hpp.

asio::error_code asio::ssl::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 128 of file context_service.hpp.

asio::error_code asio::ssl::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 120 of file context_service.hpp.

asio::error_code asio::ssl::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 135 of file context_service.hpp.

asio::error_code asio::ssl::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 143 of file context_service.hpp.

asio::error_code asio::ssl::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 151 of file context_service.hpp.


Member Data Documentation

Definition at line 167 of file context_service.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Castor
Author(s): Carpe Noctem
autogenerated on Fri Nov 8 2013 11:05:41