Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::asio::ssl::old::context_service Class Reference

Default service implementation for a context. More...

#include <context_service.hpp>

Inheritance diagram for boost::asio::ssl::old::context_service:
Collaboration diagram for boost::asio::ssl::old::context_service:

Public Types

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

Public Member Functions

 context_service (boost::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...
 
boost::system::error_code set_options (impl_type &impl, context_base::options o, boost::system::error_code &ec)
 Set options on the context. More...
 
boost::system::error_code set_verify_mode (impl_type &impl, context_base::verify_mode v, boost::system::error_code &ec)
 Set peer verification mode. More...
 
boost::system::error_code load_verify_file (impl_type &impl, const std::string &filename, boost::system::error_code &ec)
 Load a certification authority file for performing verification. More...
 
boost::system::error_code add_verify_path (impl_type &impl, const std::string &path, boost::system::error_code &ec)
 Add a directory containing certification authority files to be used for performing verification. More...
 
boost::system::error_code use_certificate_file (impl_type &impl, const std::string &filename, context_base::file_format format, boost::system::error_code &ec)
 Use a certificate from a file. More...
 
boost::system::error_code use_certificate_chain_file (impl_type &impl, const std::string &filename, boost::system::error_code &ec)
 Use a certificate chain from a file. More...
 
boost::system::error_code use_private_key_file (impl_type &impl, const std::string &filename, context_base::file_format format, boost::system::error_code &ec)
 Use a private key from a file. More...
 
boost::system::error_code use_rsa_private_key_file (impl_type &impl, const std::string &filename, context_base::file_format format, boost::system::error_code &ec)
 Use an RSA private key from a file. More...
 
boost::system::error_code use_tmp_dh_file (impl_type &impl, const std::string &filename, boost::system::error_code &ec)
 Use the specified file to obtain the temporary Diffie-Hellman parameters. More...
 
template<typename PasswordCallback >
boost::system::error_code set_password_callback (impl_type &impl, PasswordCallback callback, boost::system::error_code &ec)
 Set the password callback. More...
 
boost::asio::io_serviceget_io_service ()
 Get the io_service object that owns the service. More...
 

Static Public Attributes

static
boost::asio::detail::service_id
< context_service
id
 

Detailed Description

Default service implementation for a context.

Member Typedef Documentation

typedef service_impl_type::impl_type boost::asio::ssl::old::context_service::impl_type

The type of the context.

Constructor & Destructor Documentation

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

Constructor.

Member Function Documentation

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

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

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

Create a new context implementation.

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

Destroy a context implementation.

boost::asio::io_service& boost::asio::io_service::service::get_io_service ( )
inherited

Get the io_service object that owns the service.

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

Load a certification authority file for performing verification.

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

Return a null context implementation.

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

Set options on the context.

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

Set the password callback.

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

Set peer verification mode.

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

Use a certificate chain from a file.

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

Use a certificate from a file.

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

Use a private key from a file.

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

Use an RSA private key from a file.

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

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

Member Data Documentation


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