Clementine
Public Types | Public Member Functions | Protected Member Functions | List of all members
asio::ssl::context_base Class Reference

The context_base class is used as a base for the basic_context class template so that we have a common place to define various enums. More...

#include <context_base.hpp>

Inheritance diagram for asio::ssl::context_base:
Inheritance graph
[legend]

Public Types

enum  method {
  sslv2, sslv2_client, sslv2_server, sslv3,
  sslv3_client, sslv3_server, tlsv1, tlsv1_client,
  tlsv1_server, sslv23, sslv23_client, sslv23_server,
  tlsv11, tlsv11_client, tlsv11_server, tlsv12,
  tlsv12_client, tlsv12_server, tlsv13, tlsv13_client,
  tlsv13_server, tls, tls_client, tls_server
}
 Different methods supported by a context. More...
 
enum  file_format { asn1, pem }
 File format types. More...
 
enum  password_purpose { for_reading, for_writing }
 Purpose of PEM password. More...
 
typedef long options
 Bitmask type for SSL options.
 
typedef int verify_mode
 

Public Member Functions

 ASIO_STATIC_CONSTANT (long, default_workarounds=SSL_OP_ALL)
 
 ASIO_STATIC_CONSTANT (long, single_dh_use=SSL_OP_SINGLE_DH_USE)
 
 ASIO_STATIC_CONSTANT (long, no_sslv2=SSL_OP_NO_SSLv2)
 
 ASIO_STATIC_CONSTANT (long, no_sslv3=SSL_OP_NO_SSLv3)
 
 ASIO_STATIC_CONSTANT (long, no_tlsv1=SSL_OP_NO_TLSv1)
 
 ASIO_STATIC_CONSTANT (long, no_tlsv1_1=0x10000000L)
 
 ASIO_STATIC_CONSTANT (long, no_tlsv1_2=0x08000000L)
 
 ASIO_STATIC_CONSTANT (long, no_tlsv1_3=0x20000000L)
 
 ASIO_STATIC_CONSTANT (long, no_compression=0x20000L)
 
 ASIO_STATIC_CONSTANT (int, verify_none=SSL_VERIFY_NONE)
 
 ASIO_STATIC_CONSTANT (int, verify_peer=SSL_VERIFY_PEER)
 
 ASIO_STATIC_CONSTANT (int, verify_fail_if_no_peer_cert=SSL_VERIFY_FAIL_IF_NO_PEER_CERT)
 
 ASIO_STATIC_CONSTANT (int, verify_client_once=SSL_VERIFY_CLIENT_ONCE)
 

Protected Member Functions

 ~context_base ()
 Protected destructor to prevent deletion through this type.
 

Detailed Description

The context_base class is used as a base for the basic_context class template so that we have a common place to define various enums.

Member Enumeration Documentation

◆ file_format

File format types.

Enumerator
asn1 

ASN.1 file.

pem 

PEM file.

◆ method

Different methods supported by a context.

Enumerator
sslv2 

Generic SSL version 2.

sslv2_client 

SSL version 2 client.

sslv2_server 

SSL version 2 server.

sslv3 

Generic SSL version 3.

sslv3_client 

SSL version 3 client.

sslv3_server 

SSL version 3 server.

tlsv1 

Generic TLS version 1.

tlsv1_client 

TLS version 1 client.

tlsv1_server 

TLS version 1 server.

sslv23 

Generic SSL/TLS.

sslv23_client 

SSL/TLS client.

sslv23_server 

SSL/TLS server.

tlsv11 

Generic TLS version 1.1.

tlsv11_client 

TLS version 1.1 client.

tlsv11_server 

TLS version 1.1 server.

tlsv12 

Generic TLS version 1.2.

tlsv12_client 

TLS version 1.2 client.

tlsv12_server 

TLS version 1.2 server.

tlsv13 

Generic TLS version 1.3.

tlsv13_client 

TLS version 1.3 client.

tlsv13_server 

TLS version 1.3 server.

tls 

Generic TLS.

tls_client 

TLS client.

tls_server 

TLS server.

◆ password_purpose

Purpose of PEM password.

Enumerator
for_reading 

The password is needed for reading/decryption.

for_writing 

The password is needed for writing/encryption.


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