Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

ssl::context

class context :
  public ssl::context_base,
  noncopyable
Types

Name

Description

file_format

File format types.

impl_type

(Deprecated: Use native_handle_type.) The native type of the SSL context.

method

Different methods supported by a context.

native_handle_type

The native handle type of the SSL context.

options

Bitmask type for SSL options.

password_purpose

Purpose of PEM password.

Member Functions

Name

Description

add_verify_path

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

context

Constructor.

Deprecated constructor taking a reference to an io_service object.

Move-construct a context from another.

impl

(Deprecated: Use native_handle().) Get the underlying implementation in the native type.

load_verify_file

Load a certification authority file for performing verification.

native_handle

Get the underlying implementation in the native type.

operator=

Move-assign a context from another.

set_default_verify_paths

Configures the context to use the default directories for finding certification authority certificates.

set_options

Set options on the context.

set_password_callback

Set the password callback.

set_verify_callback

Set the callback used to verify peer certificates.

set_verify_mode

Set the peer verification mode.

use_certificate_chain_file

Use a certificate chain from a file.

use_certificate_file

Use a certificate from a file.

use_private_key_file

Use a private key from a file.

use_rsa_private_key_file

Use an RSA private key from a file.

use_tmp_dh_file

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

~context

Destructor.

Data Members

Name

Description

default_workarounds

Implement various bug workarounds.

no_sslv2

Disable SSL v2.

no_sslv3

Disable SSL v3.

no_tlsv1

Disable TLS v1.

single_dh_use

Always create a new key when using tmp_dh parameters.

Requirements

Header: boost/asio/ssl/context.hpp

Convenience header: boost/asio/ssl.hpp


PrevUpHomeNext