$search
Default service implementation for a context. More...
#include <context_service.hpp>

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_type & | service_impl_ |
Default service implementation for a context.
Definition at line 36 of file context_service.hpp.
The type of the context.
Definition at line 57 of file context_service.hpp.
typedef detail::openssl_context_service asio::ssl::context_service::service_impl_type [private] |
Definition at line 45 of file context_service.hpp.
| asio::ssl::context_service::context_service | ( | asio::io_service & | io_service | ) | [inline, explicit] |
Constructor.
Definition at line 61 of file context_service.hpp.
| 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.
| void asio::ssl::context_service::create | ( | impl_type & | impl, | |
| context_base::method | m | |||
| ) | [inline] |
Create a new context implementation.
Definition at line 79 of file context_service.hpp.
| void asio::ssl::context_service::destroy | ( | impl_type & | impl | ) | [inline] |
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.
| impl_type asio::ssl::context_service::null | ( | ) | const [inline] |
Return a null context implementation.
Definition at line 73 of file context_service.hpp.
| asio::error_code asio::ssl::context_service::set_options | ( | impl_type & | impl, | |
| context_base::options | o, | |||
| asio::error_code & | ec | |||
| ) | [inline] |
Set options on the context.
Definition at line 91 of file context_service.hpp.
| 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.
| asio::error_code asio::ssl::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 98 of file context_service.hpp.
| void asio::ssl::context_service::shutdown_service | ( | ) | [inline, virtual] |
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.
Definition at line 167 of file context_service.hpp.