fix8  version 1.4.0
Open Source C++ FIX Framework
FIX8::SslContext Struct Reference

Class to hold SSL context for failoverable sessions. More...

#include <configuration.hpp>

Public Member Functions

 SslContext (const std::string &private_key_file="", const std::string &certificate_file="", const std::string &ca_location="", int verification_mode=SSL_VERIFY_PEER, int verification_depth=9, bool load_default_cas=false, const std::string &cipher_list="ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH")
 

Public Attributes

std::string _private_key_file
 
std::string _certificate_file
 
std::string _ca_location
 
int _verification_mode
 are used (see loadDefaultCAs). More...
 
int _verification_depth
 9 More...
 
bool _load_default_cas
 false More...
 
std::string _cipher_list
 "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH" More...
 
bool _valid
 

Detailed Description

Class to hold SSL context for failoverable sessions.

Definition at line 64 of file configuration.hpp.

Constructor & Destructor Documentation

FIX8::SslContext::SslContext ( const std::string &  private_key_file = "",
const std::string &  certificate_file = "",
const std::string &  ca_location = "",
int  verification_mode = SSL_VERIFY_PEER,
int  verification_depth = 9,
bool  load_default_cas = false,
const std::string &  cipher_list = "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH" 
)
inline

Definition at line 80 of file configuration.hpp.

82  :!ADH:!LOW:!EXP:!MD5:@STRENGTH")
83  : _private_key_file(private_key_file), _certificate_file(certificate_file), _ca_location(ca_location),
84  _verification_mode(verification_mode), _verification_depth(verification_depth), _load_default_cas(load_default_cas),
85  _cipher_list(cipher_list), _valid()
86  {
87  }

Member Data Documentation

std::string FIX8::SslContext::_ca_location

caLocation contains the path to the file or directory containing the CA/root certificates. Can be empty if the OpenSSL builtin CA certificates

Definition at line 71 of file configuration.hpp.

std::string FIX8::SslContext::_certificate_file

certificateFile contains the path to the certificate file (in PEM format). If the private key and the certificate are stored in the same file, this can be empty if privateKeyFile is given.

Definition at line 68 of file configuration.hpp.

std::string FIX8::SslContext::_cipher_list

"ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"

Definition at line 77 of file configuration.hpp.

bool FIX8::SslContext::_load_default_cas

false

Definition at line 76 of file configuration.hpp.

std::string FIX8::SslContext::_private_key_file

privateKeyFile contains the path to the private key file used for encryption. Can be empty if no private key file is used.

Definition at line 66 of file configuration.hpp.

bool FIX8::SslContext::_valid

Definition at line 78 of file configuration.hpp.

int FIX8::SslContext::_verification_depth

9

Definition at line 75 of file configuration.hpp.

int FIX8::SslContext::_verification_mode

are used (see loadDefaultCAs).

none, relaxed, strict, once

Definition at line 74 of file configuration.hpp.


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