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.

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_certificate_authority

Add certification authority for performing verification.

add_verify_path

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

clear_options

Clear options on the context.

context

Constructor.

Move-construct a context from another.

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_depth

Set the peer verification depth.

set_verify_mode

Set the peer verification mode.

use_certificate

Use a certificate from a memory buffer.

use_certificate_chain

Use a certificate chain from a memory buffer.

use_certificate_chain_file

Use a certificate chain from a file.

use_certificate_file

Use a certificate from a file.

use_private_key

Use a private key from a memory buffer.

use_private_key_file

Use a private key from a file.

use_rsa_private_key

Use an RSA private key from a memory buffer.

use_rsa_private_key_file

Use an RSA private key from a file.

use_tmp_dh

Use the specified memory buffer to obtain the temporary Diffie-Hellman parameters.

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_compression

Disable compression. Compression is disabled by default.

no_sslv2

Disable SSL v2.

no_sslv3

Disable SSL v3.

no_tlsv1

Disable TLS v1.

no_tlsv1_1

Disable TLS v1.1.

no_tlsv1_2

Disable TLS v1.2.

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