12 #ifndef ASIO_SSL_OLD_CONTEXT_SERVICE_HPP 13 #define ASIO_SSL_OLD_CONTEXT_SERVICE_HPP 15 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 17 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 21 #include <boost/noncopyable.hpp> 35 #if defined(GENERATING_DOCUMENTATION)
46 #if defined(GENERATING_DOCUMENTATION) 52 #if defined(GENERATING_DOCUMENTATION) 68 return service_impl_.
null();
74 service_impl_.
create(impl, m);
151 template <
typename PasswordCallback>
160 void shutdown_service()
165 service_impl_type& service_impl_;
174 #endif // ASIO_SSL_OLD_CONTEXT_SERVICE_HPP asio::error_code set_verify_mode(impl_type &impl, context_base::verify_mode v, asio::error_code &ec)
asio::error_code load_verify_file(impl_type &impl, const std::string &filename, asio::error_code &ec)
void destroy(impl_type &impl)
context_service(asio::io_service &io_service)
Constructor.
impl_type null() const
Return a null context implementation.
Class used to uniquely identify a service.
Provides core I/O functionality.
asio::error_code set_password_callback(impl_type &impl, PasswordCallback callback, asio::error_code &ec)
Set the password callback.
void destroy(impl_type &impl)
Destroy a context implementation.
asio::error_code set_password_callback(impl_type &impl, Password_Callback callback, asio::error_code &ec)
Service & use_service(io_service &ios)
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.
void create(impl_type &impl, context_base::method m)
Create a new context implementation.
asio::error_code use_tmp_dh_file(impl_type &impl, const std::string &filename, asio::error_code &ec)
asio::error_code use_certificate_chain_file(impl_type &impl, const std::string &filename, asio::error_code &ec)
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.
asio::error_code add_verify_path(impl_type &impl, const std::string &path, asio::error_code &ec)
asio::error_code set_options(impl_type &impl, context_base::options o, asio::error_code &ec)
Set options on the context.
method
Different methods supported by a context.
asio::error_code use_private_key_file(impl_type &impl, const std::string &filename, context_base::file_format format, asio::error_code &ec)
asio::error_code use_rsa_private_key_file(impl_type &impl, const std::string &filename, context_base::file_format format, asio::error_code &ec)
service_impl_type::impl_type impl_type
The type of the context.
asio::error_code set_options(impl_type &impl, context_base::options o, 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)
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.
Class to represent an error code value.
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.
void create(impl_type &impl, context_base::method m)
asio::error_code set_verify_mode(impl_type &impl, context_base::verify_mode v, asio::error_code &ec)
Set peer verification mode.
static asio::detail::service_id< context_service > id
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 add_verify_path(impl_type &impl, const std::string &path, asio::error_code &ec)
service_base(asio::io_service &io_service)
long options
Bitmask type for SSL options.
Base class for all io_service services.
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.
file_format
File format types.
Default service implementation for a context.